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
...