wood burning stoves*
The moose likes Tomcat and the fly likes New to tomcat getting error JAVA_HOME not defined Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "New to tomcat getting error JAVA_HOME not defined" Watch "New to tomcat getting error JAVA_HOME not defined" New topic
Author

New to tomcat getting error JAVA_HOME not defined

jim gemlo
Greenhorn

Joined: Feb 24, 2004
Posts: 20
I am using linux 9.0. I am trying to shutdown tomcat5.
Error says:
The JAVA_HOME environment variable is not defined.
This environment variable is needed to run this program.
I set the variable in the etc/profile to this
JAVA_HOME = /usr/local/java2
Then farther down I set the PATH varible like so
export <previous stuff> JAVA_HOME/bin
HELP
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

did you export JAVA_HOME ? (I think it's used in other scripts that are called by the first script)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New to tomcat getting error JAVA_HOME not defined
 
Similar Threads
Problem starting Tomcat 4.1.31 on Mac OS X
error on setting Java_home for Tomcat4.0.3
how to start tomcat
Problem starting TOMCAT version 5
problem starting Tomcat5.5 from command prompt