This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

error on setting Java_home for Tomcat4.0.3

david liu
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12756
    
    5
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
Bill
[ March 25, 2002: Message edited by: William Brogden ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error on setting Java_home for Tomcat4.0.3
 
Similar Threads
J2EE SDK 1.3.1 on Windows ME
please help with tomcat
help i cant start tomcat
Need Help starting Tomcat
confusion over setup