Install tomcat6.0.18 JAVA_HOME/JRE_HOME problem
Firstly, I installed java-6-sun
then I downloaded tomcat6.0.18
then I set JAVA_HOME with every method(in ./.bashrc, /etc/profile, etc) I can find online.
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/
Also, I have the result:
tai@avaceratops:~$ echo $JRE_HOME
/usr/lib/jvm/java-6-sun/jre
however, when I try to start tomcat, I got:
tai@ubuntu:/$ sudo /usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr
it's weird, it should be Using JRE_HOME: /usr/lib/jvm/java-6-sun/jre in my last line based on the value of my JRE_HOME
can anyone give me any hint? thank you!
|