Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing Tomcat 1

Status
Not open for further replies.

ddrillich

Technical User
Jun 11, 2003
546
US
Good Day,

I just installed tomcat and when trying to start it, I get the following message:

E:\Setup\jakarta-tomcat-5.0.30\bin>startup.bat
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 not a JRE
Using CATALINA_BASE: E:\Setup\jakarta-tomcat-5.0.30
Using CATALINA_HOME: E:\Setup\jakarta-tomcat-5.0.30
Using CATALINA_TMPDIR: E:\Setup\jakarta-tomcat-5.0.30\temp
Using JAVA_HOME: C:\bea\jdk131\bin
The system cannot find the file -Djava.endorsed.dirs=.

Any ideas?

Many thanks,
Dan
 
Sometimes the error message actually tells you what is wrong :

the error message said:
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 not a JRE
[/code]

So, you need to define your JAVA_HOME environment varibale. You can either add it to the Environment variables via the "Control Panel" thing, or you can set it in your DOS/cmd console before you start Tmocat :

set JAVA_HOME=C:\where\java\lives

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Right sedj, but as you can see in the error message the variable already exists and as far as I know it points to the right directory - where the compiler resides.

.....
Using JAVA_HOME: C:\bea\jdk131\bin
.....


-- Dan
 
JAVA_HOME should point to C:\bea\jdk131 , not C:\bea\jdk131\bin though

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Thanks for the star :)

BTW, you might want to consider upgrading your JDK to 1.5, or at least to 1.4 if at all possible, as 1.3 is pretty old these days ...

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top