不设置环境变量,Tomcat 设置JDK地址

修改
apache-tomcat-6.0.33\bin\catalina.bat 文件

@echo   off
if   "%OS% "   ==   "Windows_NT "   setlocal
rem   ---------------------------------------------------------------------------
rem   Start   script   for   the   CATALINA   Server
rem
rem   $Id:   startup.bat,v   1.4   2002/08/04   18:19:43   patrickl   Exp   $
rem   ---------------------------------------------------------------------------
set   JAVA_HOME=c:\jdk
set   CATALINA_HOME= c:\apache-tomcat-6.0.33

rem   Guess   CATALINA_HOME   if   not   defined
if   not   "%CATALINA_HOME% "   ==   " "   goto   gotHome

JAVA_HOME=c:\jdk
set   CATALINA_HOME=c:\apache-tomcat-6.0.33   中
c:\jdk   是你jdk工具包的目录,
c:\apache-tomcat-6.0.33  是tomcat 安装目录

你可能感兴趣的:(不设置环境变量,Tomcat 设置JDK地址)