Tomcat的startup.bat启动不了 10
用户变量:java_home:F:\S2_6.0装入软件\JDK6.0;F:\ProgramFiles\Java\jdk1.7.0_02path:F:\S2_6.0装入软...
用户变量:
java_home:
F:\S2_6.0 装入软件\JDK 6.0;F:\Program Files\Java\jdk1.7.0_02
path:
F:\S2_6.0 装入软件\JDK 6.0\jre\bin;F:\Program Files\EclipseSDK_Android\android-sdk-windows\tools;F:\Program Files\Java\jdk1.7.0_02\jre;F:\Program Files\Java\jdk1.7.0_02\bin;F:\S2_6.0 装入软件\JDK 6.0\bin
tomcat_home:
F:\Program Files\apache-tomcat-7.0.11;F:\Program Files\apache-tomcat-6.0.13\apache-tomcat-6.0.13
系统变量:
classpath:
F:\S2_6.0 装入软件\JDK 6.0\lib;F:\Program Files\Java\jdk1.7.0_02;F:\Program Files\Java\jdk1.7.0_02\lib\dt.jar;F:\Program Files\Java\jdk1.7.0_02\lib\tools.jar
path:
C:\Program Files\Internet Explorer;F:\oracle\product\10.2.0\db_1\bin;F:\Program Files\oracle\product\10.2.0\db_3\bin;F:\Program Files\oracle\product\10.2.0\db_1\bin;F:\Program Files\oracle\product\10.2.0\db_2\bin;F:\Program Files\bin;F:\oracle\product\10.2.0\db_4\bin;I:\S1学习软件\oracle_10g\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;F:\S2_6.0 装入软件\Autodesk Maya 2011\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\win7优化大师\Windows7Master;F:\Program Files\MySQL\MySQL Server 5.1\bin;F:\S2_6.0 装入软件\JDK 6.0\jre\bin;C:\Windows\WebCallCtrl;F:\Program Files\Java\jdk1.7.0_02\jre\bin
注:我是有两个Tomcat,和两个JDK的,但是就是不能启动Tomcat中的startup.bat,双击一闪而过,在cmd启动会提示:The Java_Home environment ariable is not defined correctly,This environment ariable id needed to run this program ,NB: Java_Home should point to a JDK not a JRE ,两个Tomcat都不行,在MyEclipse里启动又正常哦。为什么啊?我的Java_Home不就是JDK吗?那里是JRE啊?
可以了,我在startup.bat文件中加上
SET TOMCAT_HOME=F:\Program Files\apache-tomcat-6.0.13\apache-tomcat-6.0.13
SET JAVA_HOME=F:\S2_6.0 装入软件\JDK 6.0
这样就没问题了.... 展开
java_home:
F:\S2_6.0 装入软件\JDK 6.0;F:\Program Files\Java\jdk1.7.0_02
path:
F:\S2_6.0 装入软件\JDK 6.0\jre\bin;F:\Program Files\EclipseSDK_Android\android-sdk-windows\tools;F:\Program Files\Java\jdk1.7.0_02\jre;F:\Program Files\Java\jdk1.7.0_02\bin;F:\S2_6.0 装入软件\JDK 6.0\bin
tomcat_home:
F:\Program Files\apache-tomcat-7.0.11;F:\Program Files\apache-tomcat-6.0.13\apache-tomcat-6.0.13
系统变量:
classpath:
F:\S2_6.0 装入软件\JDK 6.0\lib;F:\Program Files\Java\jdk1.7.0_02;F:\Program Files\Java\jdk1.7.0_02\lib\dt.jar;F:\Program Files\Java\jdk1.7.0_02\lib\tools.jar
path:
C:\Program Files\Internet Explorer;F:\oracle\product\10.2.0\db_1\bin;F:\Program Files\oracle\product\10.2.0\db_3\bin;F:\Program Files\oracle\product\10.2.0\db_1\bin;F:\Program Files\oracle\product\10.2.0\db_2\bin;F:\Program Files\bin;F:\oracle\product\10.2.0\db_4\bin;I:\S1学习软件\oracle_10g\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;F:\S2_6.0 装入软件\Autodesk Maya 2011\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\win7优化大师\Windows7Master;F:\Program Files\MySQL\MySQL Server 5.1\bin;F:\S2_6.0 装入软件\JDK 6.0\jre\bin;C:\Windows\WebCallCtrl;F:\Program Files\Java\jdk1.7.0_02\jre\bin
注:我是有两个Tomcat,和两个JDK的,但是就是不能启动Tomcat中的startup.bat,双击一闪而过,在cmd启动会提示:The Java_Home environment ariable is not defined correctly,This environment ariable id needed to run this program ,NB: Java_Home should point to a JDK not a JRE ,两个Tomcat都不行,在MyEclipse里启动又正常哦。为什么啊?我的Java_Home不就是JDK吗?那里是JRE啊?
可以了,我在startup.bat文件中加上
SET TOMCAT_HOME=F:\Program Files\apache-tomcat-6.0.13\apache-tomcat-6.0.13
SET JAVA_HOME=F:\S2_6.0 装入软件\JDK 6.0
这样就没问题了.... 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询