File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat Error - Win 2K Bug? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Error - Win 2K Bug? " Watch "Tomcat Error - Win 2K Bug? " New topic
Author

Tomcat Error - Win 2K Bug?

shanks java
Greenhorn

Joined: Mar 08, 2004
Posts: 3
Am struggling with this error:
I have installed J2EE SDK 1.4 in c:\Sun\AppServer (Default Directory)
I have installed Tomcat 4.1.30 in C:\Tomcat\Tomcat 4-1-30
JAVA_HOME environment variable : C:\Sun\AppServer
CATALINA_HOME environment veriable : C:\Tomcat\Tomcat 4-1-30
I am getting the error :
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Using CATALINA_BASE: c:\tomcat\Tomcat 4-1-30
Using CATALINA_HOME: c:\tomcat\Tomcat 4-1-30
Using CATALINA_TMPDIR: c:\tomcat\Tomcat 4-1-30\temp
Using JAVA_HOME: C:\Sun\AppServer
The system cannot find the file -Dsun.io.useCanonCaches=false.
Is this a bug for Tomcat with Windows 2000 SP4? Any remedies please?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12678
    
    5
Does c:\Sun\AppServer have a bin directory with java.exe in it?
Do you have another SDK on this system?
Where do you define JAVA_HOME? as a system environment variable?
Bill


Java Resources at www.wbrogden.com
shanks java
Greenhorn

Joined: Mar 08, 2004
Posts: 3
Java.exe application file are located at 2 places:
C:\Sun\AppServer\jdk\bin and C:\Sun\AppServer\jdk\jre\bin
I have defined the environment variables through Control Panel>System>Advanced Tab> Under System variables
I have installed SDK only once. There is another folder "C:\Java Client" containing "jre-1_2_2_008-win-i" Application file. This has already been installed on my system during the installation of Peregrine Helpdesk Application Software Client.
There is no file by any name "CanonCaches" when I search thru explorer window.
Also when I delete the environment variable declaration I get the following error:
C:\tomcat\Tomcat 4-1-30\bin>startup
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.
shanks java
Greenhorn

Joined: Mar 08, 2004
Posts: 3
Thanx Bill !!
I have found the reason for the error, ofcourse with your hints.
Although the default install directory for J2EE SDK was C:\Sun\AppServer, I actually need to define the Environment Variable JAVA_HOME to C:\Sun\AppServer\JDK where (as u rightly said) the Java.exe file was located.
All Tomcat Setup guides only instruct to set the Environment Variable path to the J2EE default setup directory, which in my case was C:\Sun\AppServer. Tomcat startup actually needs the path to the Java.exe file.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Error - Win 2K Bug?
 
Similar Threads
javax.servlet.* package
doubt in setting class path
unable to start tomcat 4.1.21
Help on installing Tomcat on Win ME
about tomcat