您的位置:首页 > 运维架构 > Tomcat

win7 64位 安装tomcat的问题

2013-09-10 01:08 459 查看

1 tomcat 提示指定的服务未安装 unable to open

新下载的Tomcat6.0 解紧缩 完了运行tomcat6.exe屏幕一闪就没了 运行tomcat6w.exe弹出个筐
指定的做事并未以已安装的做事存在 Unable to open the Service 'tomcat6'

具体 安装行动 :打开下令 行提醒 符窗口

=> 进入Tomcat安装目次 ==> 进入bin目次 下==> 输入:service.bat install 即可

2 执行安装后仍旧不好用

从tomcat的bin目录下启动startup.bat 结果tomcat一闪而过,留下华丽的身影,为什么呢?先看Tomcat的startup.bat,它调用了catalina.bat,而catalina.bat则调用了setclasspath.bat。报如下的错误.

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

只要在setclasspath.bat的开头声明环境变量,如我的就是:

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

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

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

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: