報錯
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
Tomcat的startup.bat,它調用了catalina.bat,而catalina.bat則調用了setclasspath.bat。
只要在setclasspath.bat的開頭聲明環境變量,打開tomcat的bin目錄下面的setclasspath.sh
export JAVA_HOME="/usr/java/jdk1.6.0_39"
export JRE_HOME="/usr/java/jdk1.6.0_39/jre"