Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Tomcat Error - Win 2K Bug?  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
shanks java
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!