Install-free Tomcat after double-clicking Startup.bat, the Startup window flashes and the Tomcat service does not start.
The reason for this is that when you start Tomcat, you need to read environment variables and configuration information, and you cannot register environment variables without this information, causing Tomcat to flash back.
Solution:
1. Locate Startup.bat under the Unpacked Tomcat Bin folder, right-click-> Edit. Add the following two lines to the file header:
SET java_home=d:\java\jdk1.6.0_10 (JAVA jdk directory)
SET tomcat_home=e:\tomcat-6.0.35 (The extracted TOMCAT file directory)
2. Similarly, find Shutdown.bat under the unpacked Tomcat Bin folder and right-click-> Edit. Add the following two lines to the file header:
SET java_home=d:\java\jdk1.6.0_10 (JAVA jdk directory)
SET tomcat_home=e:\tomcat-6.0.35 (The extracted TOMCAT file directory)
3. Copy the Web files you want to publish/deploy to Tomcat's WebApps directory.
4. Double-click Startup.bat to start Tomcat and start successfully.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.