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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: New to tomcat getting error JAVA_HOME not defined
 
Similar Threads
Problem starting Tomcat 4.1.31 on Mac OS X
how to start tomcat
problem starting Tomcat5.5 from command prompt
error on setting Java_home for Tomcat4.0.3
Problem starting TOMCAT version 5