wood burning stoves 2.0*
The moose likes Servlets and the fly likes error on setting Java_home for Tomcat4.0.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "error on setting Java_home for Tomcat4.0.3" Watch "error on setting Java_home for Tomcat4.0.3" New topic

error on setting Java_home for Tomcat4.0.3

david liu

Joined: Feb 20, 2002
Posts: 6
i use window98, when i start up tomcat , the error message:
"The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
Label not found
C:\jakarta-tomcat-4.0.3\bin> "

well,my jdk directory is c:\j2sdk1.4.0
i try to use the command
set java_home=c:\j2sdk1.4.0in sysedit
after setting the command , it is like this
PATH C:\j2sdk1.4.0\bin;
set java_home=c:\j2sdk1.4.0
in sysedit, but it doesnot work ,the same error message, why???
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
I just have a line in Autoexec.bat
SET JAVA_HOME=c:\jdk1.3
You also can add this to autoexec.bat
SET CATALINA_HOME=c:\tomcat401
Remember JAVA is Case Sensitive even if Windows is not consistent, so that has to be JAVA_HOME
[ March 25, 2002: Message edited by: William Brogden ]
It is sorta covered in the JavaRanch Style Guide.
subject: error on setting Java_home for Tomcat4.0.3
Similar Threads
Need Help starting Tomcat
confusion over setup
J2EE SDK 1.3.1 on Windows ME
please help with tomcat
help i cant start tomcat