aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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