Thanks to all for the replies. So we dont need JDK_HOME, and the message >>>>> 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 is obsolete. Best regards,
From: Bobi St Date: Thu, 21 Jul 2011 19:58:53 why is Why is JDK needed also for Tomcat 7 ? Does it use a compiler, or why not simply using for example jre6 ?!? I have to install always extra JDK because of it ... > Von: Justin Randall > 21. Juli, 2011 21:01 Uhr > It uses the Java compiler for activities such as compiling JSPs into Servlets into Java class files. > All versions of Tomcat require the JDK. >> I see. This makes sense. >> P.s. On the other hand the ---or--- in the error message is misleading: neither JDK_HOME ---nor--- JRE_HOME is set... >>> Von: Konstantin Kolinko >>> 21. Juli, 2011 21:09 Uhr >>> Wrong. All currently supported versions (5.5, 6.0, 7.0) >>> do not use JDK compiler by default even if it is available. >>> See documentation for details. >>> All of them can run with JRE. >>> It is good to have JDK around because of additional utilities like jvisualvm etc. >>>> Bobi St >>>> 22. Juli, 2011 13:15 Uhr >>>> So, I'm talking about Tomcat 7. According to some description, it >>>> doesn't need JDK anymore. For this reason under Windows (7) I >>>> didn't set it at the beginning (neither did I install it), so the >>>> error came: no JDK nor JRE was set (although JRE was set). I tried >>>> to set JDK_HOME to jre6 as well, but the same error message. >>>> Only after installing (the latest) JDK, and setting JDK_HOME >>>> towards it, I could start Tomcat with the startup.bat >>>>> chris derham >>>>> Freitag, 22. Juli, 2011 14:06 Uhr >>>>> 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 >>>>>> Mark Thomas >>>>>> 22. Juli, 2011 14:13 Uhr >>>>>> That is wrong. JAVA_HOME can't point to a JRE. You should be using >>>>>> JRE_HOME here. >>>>>>> Ognjen Blagojevic >>>>>>> 22. Juli, 2011 14:16 Uhr >>>>>>> C:\apps\apache-tomcat-7.0.11\bin>set JRE_HOME= >>>>>>> C:\apps\apache-tomcat-7.0.11\bin>set JAVA_HOME= >>>>>>> C:\apps\apache-tomcat-7.0.11\bin>startup.bat >>>>>>> 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 >>>>>>> C:\apps\apache-tomcat-7.0.11\bin>set JRE_HOME=C:\Program >>>>>>> Files\Java\jre6\ >>>>>>> C:\apps\apache-tomcat-7.0.11\bin>startup.bat