PDA

View Full Version : Tomcat 5.5 problem


scelter
November 30th, 2005, 03:46 PM
I'm having trouble starting apache tomcat 5.5 on my ubuntu machine.
When i do:
/usr/local/tomcat/bin/startup.sh
I get following error:
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

When i echo $JAVA_HOME, I get:
/usr/local/jdk1.5

This is the directory where i installed java.
# ls /usr/local/jdk1.5/
bin COPYRIGHT demo include jre lib LICENSE man README.html sample src.zip THIRDPARTYLICENSEREADME.txt

java -version gives me:
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)


What I find weird is that this configuration worked fine a few days ago. When I tried to startup tomcat yesterday, It failed. I've tried to reinstall tomcat and java, but this doesn't solve the problem. Any suggestions on how to solve this problem?

emperon
January 7th, 2006, 06:53 AM
How did you install your java ? It is not the default directory you are using if you follow up the guidlines in this forum to install JDK. Also take a look at this post.
Same problem with yours:
http://www.ubuntuforums.org/showthread.php?t=23340&highlight=tomcat