Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!

Error while trying to run Tomcat for servlets

Arjun Reddy
Ranch Hand
Posts: 629
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
Remove the semi-colon after the path.

Arjun Reddy
Ranch Hand
Posts: 629
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
In the command window you have opened, what is shown when you type SET ?