1,修改bin文件夹下面的catalina.bat文件,把如下内容rem ----- Execute The Requested Command ----------------------------------echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% 修改为:echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: D:\jdk2,修改bin文件夹下面的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="%JAVA_HOME%\bin\java" set _RUNJAVAW="%JAVA_HOME%\bin\javaw" set _RUNJDB="%JAVA_HOME%\bin\jdb" set _RUNJAVAC="%JAVA_HOME%\bin\javac" 修改为: 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="D:\jdk5\bin\java" set _RUNJAVAW="D:\jdk5\bin\javaw" set _RUNJDB="D:\jdk5\bin\jdb" set _RUNJAVAC="D:\jdk5\bin\javac"我的jdk安装在了f:\program files\java中版本是:jdk1.6.0_02 我的环境变量时这样的 classpath:f:\program files\java\jdk1.6.0_02\jre\lib\rt.jar;.; path:f:\program files\java\jdk1.6.0_02\bin; java_home:f:\program files\java\jdk1.6.0_02 我就是这么设置的 好使 还有ls的 咱们来问问就是为了帮助别人的 分?有啥用啊 能换钱还是换吃的呀
网站名称:tomcat设置jdk,使用TomcatJDK如何配置
地址分享:http://csdahua.cn/article/epgieo.html