aspose file tools*
The moose likes Tomcat and the fly likes Tomcat Server Start Error... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Server Start Error..." Watch "Tomcat Server Start Error..." New topic
Author

Tomcat Server Start Error...

diana_brit
Greenhorn

Joined: Jun 19, 2004
Posts: 18
Hi
I am not able to start my tomcat server.I am getting the following error in console.

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:
'-Dsun.io.useCanonCaches' is not recognized as an internal or external command,
operable program or batch file.

Thanks in advance
Diana
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi,

Check whether the Environment Variables are properly Configured.


'-Dsun.io.useCanonCaches' is not recognized as an internal or external command,
operable program or batch file.


I think you have included "bin" in your Home Variables.


Try the following :

Ensure all these things after re-installing ur Tomcat

1. Set the environment variable CATALINA_HOME to your Tomcat holder
say c:\Tomcat(Better to delete all the 4.1.stuff....to avoid chaos
due to spaces)

2. Set JAVA_HOME variable to the JDK folder.

Say c:\jdk1.3 or something

3. Set CLASSPATH variable to %CATALINA_HOME%\commons\lib\servlet.jar;

4. Set Path variable to ;%JAVA_HOME%\bin;%CATALINA_HOME%\bin;

This will make any Tomcat work properly.

Secondly, check whether index.jsp file is there in the ROOT folder of the
Tomcat.

Hope this helps

Cheers,
Swamy
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
'-Dsun.io.useCanonCaches' is not recognized as an internal or external command,
operable program or batch file.

That sounds like an attempt has been made to define a system property value using the -D syntax in the command line. But it looks like it has been defined in the wrong place. It should be a JAVA_OPTS variable
Look for that text in startup.bat or catalina.bat

Here is an example of setting a system property in Catalina.bat

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Server Start Error...