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?
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?