码迷,mamicode.com
首页 > 其他好文 > 详细

使Tomcat指向指定的JDK目录

时间:2015-10-18 14:11:44      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:

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:\jdk -------这里的d:\jdk即为需要指定的目录---------

2,修改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"

使Tomcat指向指定的JDK目录

标签:

原文地址:http://www.cnblogs.com/zhilu-doc/p/4889390.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!