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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot start up my Tomcat

Status
Not open for further replies.

JJ26

Programmer
Oct 22, 2002
85
ID
someone can help me
I got this error when starting up my Tomcat

Code:
C:\Tomcat\bin>startup
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
Using CATALINA_BASE:   C:\J2EE_1.4
Using CATALINA_HOME:   C:\J2EE_1.4
Using CATALINA_TMPDIR: C:\Tomcat 4\temp
Using JAVA_HOME:
The system cannot find the file -Djava.endorsed.dirs=
C:\Tomcat\bin>

Is it because I'm setting the CATALINA_HOME variable after I install the Tomcat ??

Waiting for reply
 
That's because you haven't set the environmental variables. I would set the JAVA_HOME variable to 'C:\J2EE_1.4'. CATALINA_BASE and CATALINA_HOME should point to the Tomcat installation directory ('C:\Tomcat 4', but it would be safer to use the 8.3 dirname, 'C:\Tomcat~1'. Use dir /x c:\tomcat* to find out exactly what it is). If you read the startup.bat file, you'll see what it's trying to do.
 
Are you using JWSDP ? This uses the java.endorsed.dirs as part of its startup check ... standalone non-Sun packaged Tomcat does not do this check. Which bundled Tomcat package are you using exactly ?

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

Part and Inventory Search

Sponsor

Back
Top