Tomcat cannot be started after a flash

Source: Internet
Author: User

The error message is as follows: neither the java_home nor the jre_home environment variable is defined at least one of these environment variable is needed to run this program; why can't the jre_home paths of java_home be found?

The cause is unknown. The solution is as follows:

1. Analyze the startup. Bat Startup Script: It is found that Catalina. bat is called, While Catalina. Bat calls setclasspath. bat.

2. The java_home and jre_home values are defined in the header of setclasspath. bat, so manually set the java_home variable here.

rem ---------------------------------------------------------------------------rem Set CLASSPATH and Java optionsremrem $Id: setclasspath.bat 505241 2007-02-09 10:22:58Z jfclere $rem ---------------------------------------------------------------------------set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_05set JRE_HOME=C:\Program Files\Java\jre1.5.0_05rem Make sure prerequisite environment variables are setif not "%JAVA_HOME%" == "" goto gotJdkHomeif not "%JRE_HOME%" == "" goto gotJreHomeecho Neither the JAVA_HOME nor the JRE_HOME environment variable is definedecho At least one of these environment variable is needed to run this programgoto exit

...

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.