Tomcat startup unsuccessful (click Startup.bat Flash) solution

Source: Internet
Author: User

It was not successful today to encounter Tomcat manual start, but in eclipse it can be started successfully. I always start to think that the port is occupied, and finally found that this is the case. First of all, my Tomcat is a setup version. Install-free Tomcat after double-clicking Startup.bat, the Startup window flashes and the Tomcat service does not start. The reason for this: In the start Tomcat is, you need to read environment variables and configuration information, the lack of this information can not register environment variables, resulting in Tomcat's 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.7 (JAVA jdk directory)
SET tomcat_home=e:\tomcat-7.0 (The extracted TOMCAT file directory)

2. Locate Shutdown.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.7 (JAVA jdk directory)
SET tomcat_home=e:\tomcat-7.0 (The extracted TOMCAT file directory) can finally start up normally, the first step is to see if the port is occupied, and then look at it is not the above reason.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.