tomcat/bin/在startup.bat文件中加入:
SET JAVA_HOME=JDK目录
SET CATALINA_HOME=解压后Tomcat的目录
SET JAVA_HOME=E:\hi-studio\jdk1.5
SET CATALINA_HOME=D:\Program Files\Apache Software Foundation\tomcat5.0.28
tomcat6
classpath=.;%java_home%\lib\tools.jar;%java_home%\lib;D:\Tomcat 6.0.18\lib\servlet-api.jar;
java_home=C:\Program Files\Java\jdk1.6.0_14;
path=%java_home%\bin;%java_home%\;.;