mail2sacp

Well-Known Member
Feb 25, 2007
71
0
156
Hi,

It seems that tomcat is not working on my server.

I am getting following error while I try to start it.
I start it using [/usr/local/jakarta/jakarta-tomcat-5.5.9/bin]# ./startup.sh
----------------------------------------------------------
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
-----------------------------------------------------------

If any solution please update.

-Mail2Sacp.
 

johnyqqq

Member
Feb 13, 2007
16
0
151
do a ls -l /usr/java/ do see if java is installed. If not try downloading and installing.
In the Tomcat startup.sh, add
export JAVA_HOME=/usr/java/WHATEVER_JDK_VERSION

You may also want to consider NGASI AppServer Manager (http://www.ngasi.com)
which automates the above tasks as well as enables private jvm java hosting
with cPanel and other control panels.
 

ashokpomnar

Active Member
Sep 30, 2006
28
0
151
do a ls -l /usr/java/ do see if java is installed. If not try downloading and installing.
In the Tomcat startup.sh, add
export JAVA_HOME=/usr/java/WHATEVER_JDK_VERSION

You may also want to consider NGASI AppServer Manager (http://www.ngasi.com)
which automates the above tasks as well as enables private jvm java hosting
with cPanel and other control panels.
Hey,
Try to first run following command then start tomcat
export JAVA_HOME="/usr/local/jdk"
export CLASSPATH=".:/usr/local/jdk/lib/classes.zip"