Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while trying to run Tomcat for servlets

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I tried to run Tomcat by going to the bin directory and typing in startup.bat. When I did that, it gave me the below info:

The JAVA_HOME environment variable is not defined correctly.This environment variable is needed to run this program.
NB: JAVA_HOME should point to a JDK and not a JRE


However, I read through the RUNNING.txt file in the tomcat directory and set two SYSTEM environmental variables.

JAVA_HOME: C:\Program Files\Java\jdk1.5.0_14;
JRE_HOME: C:\Program Files\Java\jre1.5.0_14;


My Class Path contains : C:\Program Files\Java\jdk1.5.0_14\bin; and does not have a JRE in it.

I've set my classpath by right clicking on my computer--> Environment variables.

Any suggestion guys as where I am doing wrong?

Thanks.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove the semi-colon after the path.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I did that, closed the existing cmd prompt and opened a new command prompt but it still gives me the same error.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the command window you have opened, what is shown when you type SET ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic