关于tomcat点击startup.bat后闪退问题的解决办法
2017-01-23 14:44
916 查看
问题:使用免安装的tomcat双击startup.bat后,启动窗口一闪而过,而且tomcat服务未启动。
原因:在启动tomcat是需要读取环境变量和配置信息,缺少了这些信息,就不能登记环境变量,导致了tomcat的闪退。
解决办法:
1.在已解压的tomcat的bin文件夹下找到startup.bat,右击->编辑。在文件头加入下面两行:
SET JAVA_HOME=D:\Java\jdk1.6.0_10 (java jdk目录) SET TOMCAT_HOME=E:\tomcat-6.0.35 (解压后的tomcat文件目录)
2.同样的。在已解压的tomcat的bin文件夹下找到shutdown.bat,右击->编辑。在文件头加入下面两行:
SET JAVA_HOME=D:\Java\jdk1.6.0_10 (java jdk目录) SET TOMCAT_HOME=E:\tomcat-6.0.35 (解压后的tomcat文件目录)
@echo off SET JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_11 SET TOMCAT_HOME=D:\apache-tomcat-6.0.30 rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses this file to You under the Apache License, Version 2.0 rem (the "License"); you may not use this file except in compliance with rem the License. You may obtain a copy of the License at rem rem http://www.apache.org/licenses/LICENSE-2.0 rem rem Unless required by applicable law or agreed to in writing, software rem distributed under the License is distributed on an "AS IS" BASIS, rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem See the License for the specific language governing permissions and
以上所述是小编给大家介绍的关于tomcat点击startup.bat后闪退问题的解决办法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
您可能感兴趣的文章:
相关文章推荐
- tomcat中点击startup.bat闪退问题解决
- 解决点击tomcat的bin目录下的startup.bat闪退问题
- 如何解决Tomcat 服务器点击startup.bat 时闪退的问题
- tomcat启动不成功(点击startup.bat闪退)的解决办法
- 解决点击tomcat的bin目录下的startup.bat闪退问题
- tomcat启动不成功(点击startup.bat闪退)的解决办法
- tomcat启动不成功(点击startup.bat闪退)的解决办法
- tomcat启动不成功(点击startup.bat闪退)的解决办法
- tomcat6,tomcat7或者更高版本的tomcat点击startup.bat时候出现闪退或者运行后闪退的解决办法
- 【已解决】tomcat启动不成功(点击startup.bat闪退)的解决办法
- 关于点击tomcat中的startup.bat一闪而过的问题
- Tomcat7.0配备,解决点击startup.bat后闪退的情况
- (解压缩版Tomcat)手动启动Tomcat,点击startup.bat出现闪退的解决
- 免安装版tomcat双击startup.bat闪退问题解决
- 关于点击startup.bat启动tomcat的问题
- 解决tomcat的startup.bat开启闪退问题
- 免安装版tomcat双击startup.bat闪退问题解决
- Tomcat7.0配置,解决点击startup.bat后闪退的情况
- Tomcat7.0配置,解决点击startup.bat后闪退的情况!
- 解决点击startup.bat文件启动Tomcat时cmd窗口一闪而过的问题。