Windows 下
修改 tomcat根目录/bin/setclasspath.bat 文件 如下:
rem Otherwise either JRE or JDK are fine set JAVA_HOME="C:MyToolsjdk1.7.0" set JRE_HOME="C:MyToolsjdk1.7.0jre" if not "%JRE_HOME%" == "" goto gotJreHome if not "%JAVA_HOME%" == "" goto gotJavaHome
参考
http://blog.csdn.net/yakson/article/details/9188905