• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Not able to start Tomcat

 
Greenhorn
Posts: 1
Hibernate Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
GM/GE, this my first post in the forum .
I am using windows 7 lappy, it came with java 7 installed by default.
I installed jdk 1.6 and given JAVA_HOME environment variable as C:\Program Files (x86)\Java\jdk1.6.0_17.
I downloaded apache-tomcat-6.0.35-src and unzipped it , when I start the server by clicking on startup.bat, a small window opens and closes in fraction of seconds.Am not able to see whats happening in that window. when I ran from command prompt I will get the below error,

F:\Babu\apache-tomcat-6.0.35-src\apache-tomcat-6.0.35-src\bin>startup.bat
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
F:\Babu\apache-tomcat-6.0.35-src\apache-tomcat-6.0.35-src\bin>

Here, I am not able to understand why am I getting this error though I defined the environment variable.
Also, am not able to see the log folder which holds the catalina log in my tomcat extraction.

I will be very much thankful for any suggestions and/or solutions ....

Thanks,

Babu
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If startup.bat says

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined


then something is wrong with your environment. Open a command prompt window and type SET to double check - recall that Java cares about case.

Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!