問題:使用免安裝的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后閃退問題的解決辦法,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對VEVB武林網網站的支持!
新聞熱點
疑難解答
圖片精選