On 22/07/2011 14:06, chris derham wrote: > 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.
Exactly as expected. There is nothing wrong here. > 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 That is wrong. JAVA_HOME can't point to a JRE. You should be using JRE_HOME here. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org