question:After double-clicking with tomcat without installation, the startup window flashes by, and the tomcat service is not started.
reason:When starting tomcat, you need to read environment variables and configuration information. Without this information, you cannot register environment variables, resulting in tomcat crash.
Solution:
1. Find it in the bin folder of the unzipped tomcat, right-click -> Edit. Add the following two lines to the file header:
SET JAVA_HOME=D:\Java\jdk1.6.0_10 (java jdkTable of contents) SET TOMCAT_HOME=E:\tomcat-6.0.35 (Unzippedtomcat文件Table of contents)
2. Same. Find it in the bin folder of the unzipped tomcat, right-click -> Edit. Add the following two lines to the file header:
SET JAVA_HOME=D:\Java\jdk1.6.0_10 (java jdkTable of contents) SET TOMCAT_HOME=E:\tomcat-6.0.35 (Unzippedtomcat文件Table of contents)
@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 /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
The above is the solution to the problem of tomcat click crash after clicking. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support for my website!