I have experienced similar issues to the OP in the past, and just tried
again now and still hit them. I can't bear to watch this thread amble along
any longer, so I will try to rephrase the question for the OP as he seems
unwilling or unable to do so

Windows 7
Tomcat 7.0.19
java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)

Open command prompt, navigate to <catalina_home>\bin. If JAVA_HOME is not
set, tomcat complains no JAVA_HOME. If set to a JRE, complains should point
to JDK. Output shown below

D:\apps\tomcat\apache-tomcat-7.0.19\bin>set JAVA_HOME=

D:\apps\tomcat\apache-tomcat-7.0.19\bin>catalina.bat run
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

D:\apps\tomcat\apache-tomcat-7.0.19\bin>set JAVA_HOME=C:\Program
Files\Java\jre6


D:\apps\tomcat\apache-tomcat-7.0.19\bin>catalina.bat run
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

Hope that helps get this resolved

Chris

Reply via email to