win7 64位 安裝tomcat的問題

1  tomcat 提示指定的服務未安裝 unable to open

新下載的Tomcat6.0 解緊縮 完了運行tomcat6.exe屏幕一閃就沒了 運行tomcat6w.exe彈出個筐
指定的作事並未以已安裝的作事存在 Unable to open the Service 'tomcat6'tomcat

具體 安裝行動 :打開下令 行提醒 符窗口ui

=> 進入Tomcat安裝目次 ==> 進入bin目次 下==> 輸入:service.bat install 便可this

2 執行安裝後仍舊很差用

 從tomcat的bin目錄下啓動startup.bat 結果tomcat一閃而過,留下華麗的身影,爲何呢?先看Tomcat的startup.bat,它調用了catalina.bat,而catalina.bat則調用了setclasspath.bat。報以下的錯誤.spa

 

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program rem

 

只要在setclasspath.bat的開頭聲明環境變量,如個人就是:it

rem ---------------------------------------------------------------------------
rem Set CLASSPATH and Java options
rem
rem $Id: setclasspath.bat 505241 2007-02-09 10:22:58Z jfclere $
rem ---------------------------------------------------------------------------io

set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_20ast

set JRE_HOME=C:\Program Files\Java\jre6class

rem Make sure prerequisite environment variables are set
if not "%JAVA_HOME%" == "" goto gotJdkHome
if not "%JRE_HOME%" == "" goto gotJreHome
echo Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
echo At least one of these environment variable is needed to run this program
goto exit變量

相關文章
相關標籤/搜索