1. 修改catalina.bat文件:
找到
echo Using JRE_HOME: "%JRE_HOME%"
goto java_dir_displayed
:use_jdk
echo Using JAVA_HOME: “%JAVA_HOME%”
:java_dir_displayed
echo Using CLASSPATH: "%CLASSPATH%"
将蓝色字换成jdk的安装目录如: D:\Java1.7\jdk1.7.0_07
2. 修改setclasspath.bat文件:
找到
rem Set standard command for invoking Java.
rem Note that NT requires a window name argument when using start.
rem Also note the quoting as JAVA_HOME may contain spaces.
set _RUNJAVA="%JRE_HOME%\bin\java"
set _RUNJDB="%JAVA_HOME%\bin\jdb"
将蓝色字中%JRE_HOME%和%JAVA_HOME%都换成D:\Java1.7\jdk1.7.0_07