安装好jdk,不配置环境变量
windows平台
在catalina.bat文件和setclasspath.bat文件开头的空白处加上如下两句(指定JDK):
set JAVA_HOME=D:Program FilesJavajdk1.7 set JRE_HOME=D:Program FilesJavajdk1.7jre
linux平台
在catalina.sh文件和setclasspath.sh文件开头的空白处加上如下两句(指定JDK)
export JAVA_HOME=/usr/local/java/jdk1.7 export JRE_HOME=/usr/local/java/jdk1.7/jre