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!

Error while starting Tomcat. First time using Tomcat.

Status
Not open for further replies.

bryanbennett

Instructor
Aug 10, 2006
2
US
I am very new to Tomcat. This is my first day using it. I tried to start Tomcat and this error message popped up.

Bellow is the command line and below that is the Error:

C:\Program Files\Apache Group\Tomcat 4.1\bin>startup.bat
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:
The system cannot find the file -Dsun.io.useCanonCaches=false.
C:\Program Files\Apache Group\Tomcat 4.1\bin>


the Error is:
Windows cannot find '-Dsun.io.useCanonCaches=false'
 
Nope - the first error is quote self explanatory :

The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program

You need to add an environment variable called JAVA_HOME, which should point to your installed JDK.


--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
thank you for this great advice.

When I press Start/control panel/system/advanced/environment variables I don't see a variable that says JAVA_HOME.

1) Should I add that variable name?
2) Then where should the path of that variable point to?
 
me earlier said:
You need to add an environment variable called JAVA_HOME, which should point to your installed JDK.

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

Part and Inventory Search

Sponsor

Back
Top