Double-click startup.bat, not start tomcat, JAVA_HOME environment variable is not defined correctly

     Double-click startup.bat, tomcat not start
running display CATALINA_HOME not configured, it is configured in cmd in CATALINA_HOME and
CATALINA_BASE, after configuring appeared JAVA_HOME not configured, the Internet to find a lot of relevant solution method can not be solved, ultimately, to the official website to find a version of the installation:
     32-bit64-bit Windows Service Installer (PGP, MD5) 
     Once installed on it, probably before has been used myEclipse, when to manually start the invalid would not know,
embarrassing. . . The first such use.

================== I was a gorgeous dividing line ===================

The above problems are solved

Solution:

      Oops. . . I thought it was a bug, but when I see on a web page to make an explanation:

      http://jira.codehaus.org/browse/MNG-3728

 

In fact, only a matter of a few symbols

      1, can not be used in the JAVA_HOME path terminating semicolon, such as

             E: /Java/jdk1.6.0_10;

          Wrote prompt appears JAVA_HOME CATALINA_HOME or not configured error

      2, the path CATALINA_BASE, CATALINA_HOME, TOMCAT_HOME not at the "/" at the end, as

             E:/Java/apache-tomcat-6.0.29/

          Java.util.logging.ErrorManager write error occurs, the screen flashed

     The correct wording:

           JAVA_HOME            E:/Java/jdk1.6.0_10

           CATALINA_BASE      E:/Java/apache-tomcat-6.0.29

           CATALINA_HOME     E:/Java/apache-tomcat-6.0.29

           TOMCAT_HOME       E:/Java/apache-tomcat-6.0.29

      Note the path of punctuation can not write more, not less write 

 

 

 

 

     

Published 14 original articles · won praise 1 · views 30000 +

Guess you like

Origin blog.csdn.net/peng_zhanxuan/article/details/6093893