Re: Tomcat 7: Why is JDK needed ?
Hallo, --- Christopher Schultz ch...@christopherschultz.net schrieb am Di, 2.8.2011: The message is correct as stated; when JAVA_HOME is used, it *must* point to a JDK. If you want a specific JRE, you must set JRE_HOME, not JAVA_HOME. Well, if JDK is not needed anymore, why bother setting JAVA_HOME, why is it mentioned at all ? Because you have a choice: JRE or JDK. Some people have both. Some only have one. Hence the choice. Well, I have to accept this opinion. But secretly I would still think that is an obsolete message :) Why not only to set JRE_HOME ?!? Sorry, I can't parse that question. I meant, if JDK is not needed anymore, why at all mentioning JAVA_HOME ? It is not /required/, but it is an option Thanks .
Re: Tomcat 7: Why is JDK needed ?
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_HOMEtowards 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\binset JAVA_HOME= D:\apps\tomcat\apache-tomcat-7.0.19\bincatalina.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\binset JAVA_HOME=C:\Program Files\Java\jre6 D:\apps\tomcat\apache-tomcat-7.0.19\bincatalina.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\binset JRE_HOME= C:\apps\apache-tomcat-7.0.11\binset JAVA_HOME= C:\apps\apache-tomcat-7.0.11\binstartup.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\binset JRE_HOME=C:\Program Files\Java\jre6\ C:\apps\apache-tomcat-7.0.11\binstartup.bat
Re: Tomcat 7: Why is JDK needed ?
On 01/08/2011 22:27, Bobi St wrote: Thanks to all for the replies. So we dont need JDK_HOME, and the message Correct. 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. Wrong. The message is correct. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
Hi, --- Mark Thomas ma...@apache.org schrieb am Mo, 1.8.2011: On 01/08/2011 22:27, Bobi St wrote: So we dont need JDK_HOME, and the message Correct. 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. Wrong. The message is correct---Well, it is obsolete in a way, because setting JAVA_HOME to JRE gives the message : NB: JAVA_HOME should point to a JDK not a JRE. Why not only to set JRE_HOME ?!? Pointing at JDK from JAVA_HOME works however. ... Well, the messaging seems at least to me a little confusing. ===C:\apache-tomcat-7.0.8\binstartup 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:\apache-tomcat-7.0.8\binset JAVA_HOME=c:\Program Files\Java\jre6 D:\apache-tomcat-7.0.8\binstartup 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
RE: Tomcat 7: Why is JDK needed ?
From: Bobi St [mailto:temporaryb...@yahoo.de] Subject: Re: Tomcat 7: Why is JDK needed ? it is obsolete in a way, because setting JAVA_HOME to JRE gives the message : NB: JAVA_HOME should point to a JDK not a JRE. The message is correct as stated; when JAVA_HOME is used, it *must* point to a JDK. If you want a specific JRE, you must set JRE_HOME, not JAVA_HOME. If you set neither JAVA_HOME nor JRE_HOME, the startup scripts try to find a JVM, and set one of the variables for you. Why not only to set JRE_HOME ?!? Sorry, I can't parse that question. Pointing at JDK from JAVA_HOME works however. As it should. Setting JRE_HOME to the location of a JRE also works. the messaging seems at least to me a little confusing. Please explain why. As far as I can see, you set JAVA_HOME to a JRE, which is invalid; once you've done that, nothing useful can result. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: Tomcat 7: Why is JDK needed ?
--- Caldarale, Charles R chuck.caldar...@unisys.com schrieb am Mo, 1.8.2011: it is obsolete in a way, because setting JAVA_HOME to JRE gives the message : NB: JAVA_HOME should point to a JDK not a JRE. The message is correct as stated; when JAVA_HOME is used, it *must* point to a JDK. If you want a specific JRE, you must set JRE_HOME, not JAVA_HOME. If ::: Well, if JDK is not needed anymore, why bother setting JAVA_HOME, why is it mentioned at all ? Why not only to set JRE_HOME ?!? Sorry, I can't parse that question. ::: I meant, if JDK is not needed anymore, why at all mentioning JAVA_HOME ? the messaging seems at least to me a little confusing. Please explain why. As far as I can see, you set JAVA_HOME to a JRE, which is invalid; once you've done that, nothing useful can result. ::: Its all about JDK, if JDK is not needed anymore, why at all mentioning JAVA_HOME to JDK ?
Re: Tomcat 7: Why is JDK needed ?
On 8/1/2011 7:18 PM, Bobi St wrote: --- Caldarale, Charles Rchuck.caldar...@unisys.com schrieb am Mo, 1.8.2011: it is obsolete in a way, because setting JAVA_HOME to JRE gives the message : NB: JAVA_HOME should point to a JDK not a JRE. The message is correct as stated; when JAVA_HOME is used, it *must* point to a JDK. If you want a specific JRE, you must set JRE_HOME, not JAVA_HOME. If ::: Well, if JDK is not needed anymore, why bother setting JAVA_HOME, why is it mentioned at all ? Why not only to set JRE_HOME ?!? Sorry, I can't parse that question. ::: I meant, if JDK is not needed anymore, why at all mentioning JAVA_HOME ? the messaging seems at least to me a little confusing. Please explain why. As far as I can see, you set JAVA_HOME to a JRE, which is invalid; once you've done that, nothing useful can result. ::: Its all about JDK, if JDK is not needed anymore, why at all mentioning JAVA_HOME to JDK ? My guess would be backwards compatibility. Also, there may be a reason that somebody might want to use a JDK instead of a JRE. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bobi, On 8/1/2011 7:18 PM, Bobi St wrote: The message is correct as stated; when JAVA_HOME is used, it *must* point to a JDK. If you want a specific JRE, you must set JRE_HOME, not JAVA_HOME. Well, if JDK is not needed anymore, why bother setting JAVA_HOME, why is it mentioned at all ? Because you have a choice: JRE or JDK. Some people have both. Some only have one. Hence the choice. Why not only to set JRE_HOME ?!? Sorry, I can't parse that question. I meant, if JDK is not needed anymore, why at all mentioning JAVA_HOME ? It is not /required/, but it is an option. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk43Qv8ACgkQ9CaO5/Lv0PAasgCeO989JGDyrbPF50hYXh5pIj7Q q0AAoKMvNVtbhZP+918xkDNTmIyUVzC2 =x3qN -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
21.07.2011 21:58, Bobi St: 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 ... Who says Tomcat needs a JDK? From http://apache.mirror.digionline.de/tomcat/tomcat-7/v7.0.19/RELEASE-NOTES | In addition, Tomcat 7.0 uses the Eclipse JDT Java compiler for | compiling JSP pages. This means you no longer need to have the | complete Java Development Kit (JDK) to run Tomcat, but a Java Runtime | Environment (JRE) is sufficient. The Eclipse JDT Java compiler is | bundled with the binary Tomcat distributions. Tomcat can also be | configured to use the compiler from the JDK to compile JSPs, or any | other Java compiler supported by Apache Ant. Ancient versions of Tomcat did, by default, use the JDK's compiler to compile JSPs. Therefore, if you wanted Tomcat to compile JSPs on the fly, a JRE, by default, wasn't enough. But that was long, long ago and has never been the case for Tomcat 7. -- Regards mks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
Oh my, I got confused now :) So, if we dont need JDK; why cannt I start the server w/o having specified exactly a path to JDK. With only JRE_HOME specified it doesnt start. So, is it only good to have JDK_HOME, or it is a must ? --- Konstantin Kolinko knst.koli...@gmail.com schrieb am Do, 21.7.2011: Von: Konstantin Kolinko knst.koli...@gmail.com Betreff: Re: Tomcat 7: Why is JDK needed ? An: Tomcat Users List users@tomcat.apache.org Datum: Donnerstag, 21. Juli, 2011 21:09 Uhr 2011/7/22 Justin Randall ran...@hotmail.com: It uses the Java compiler for activities such as compiling JSPs into Servlets into Java class files. All versions of Tomcat require the JDK. 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. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
2011/7/22 Bobi St temporaryb...@yahoo.de: Oh my, I got confused now :) So, if we dont need JDK; why cannt I start the server w/o having specified exactly a path to JDK. With only JRE_HOME specified it doesnt start. Probably you are doing something wrong. Google for smart questions. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
:) Well, whats wrong, not to specify JDK_HOME if its not needed ?!? or whats wrong in specifying JRE_HOME to jre6 ?!? --- Konstantin Kolinko knst.koli...@gmail.com schrieb am Fr, 22.7.2011: Von: Konstantin Kolinko knst.koli...@gmail.com Betreff: Re: Tomcat 7: Why is JDK needed ? An: Tomcat Users List users@tomcat.apache.org Datum: Freitag, 22. Juli, 2011 10:56 Uhr 2011/7/22 Bobi St temporaryb...@yahoo.de: Oh my, I got confused now :) So, if we dont need JDK; why cannt I start the server w/o having specified exactly a path to JDK. With only JRE_HOME specified it doesnt start. Probably you are doing something wrong. Google for smart questions. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
Bobi, What Konstantin is suggesting, is if you want to get your question answered, you *really* need to describe your problem in detail. Which OS, JRE and Tomcat version are you using, which Tomcat distribution (installer or .zip), how are your environment variables set, how do you try to start Tomcat, and what are exact error messages you get (might be on console or log files). Without that, people waste their time making guesses, or worse for you, ignore your questions. -Ognjen On 22.7.2011 12:22, Bobi St wrote: :) Well, whats wrong, not to specify JDK_HOME if its not needed ?!? or whats wrong in specifying JRE_HOME to jre6 ?!? --- Konstantin Kolinkoknst.koli...@gmail.com schrieb am Fr, 22.7.2011: Von: Konstantin Kolinkoknst.koli...@gmail.com Betreff: Re: Tomcat 7: Why is JDK needed ? An: Tomcat Users Listusers@tomcat.apache.org Datum: Freitag, 22. Juli, 2011 10:56 Uhr 2011/7/22 Bobi Sttemporaryb...@yahoo.de: Oh my, I got confused now :) So, if we dont need JDK; why cannt I start the server w/o having specified exactly a path to JDK. With only JRE_HOME specified it doesnt start. Probably you are doing something wrong. Google for smart questions. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
Hallo, sorry, I thought the settings I was asking for, are valid for all OS. 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. Best, --- Ognjen Blagojevic ognjen.d.blagoje...@gmail.com schrieb am Fr, 22.7.2011: Von: Ognjen Blagojevic ognjen.d.blagoje...@gmail.com Betreff: Re: Tomcat 7: Why is JDK needed ? An: Tomcat Users List users@tomcat.apache.org Datum: Freitag, 22. Juli, 2011 12:06 Uhr Bobi, What Konstantin is suggesting, is if you want to get your question answered, you *really* need to describe your problem in detail. Which OS, JRE and Tomcat version are you using, which Tomcat distribution (installer or .zip), how are your environment variables set, how do you try to start Tomcat, and what are exact error messages you get (might be on console or log files). Without that, people waste their time making guesses, or worse for you, ignore your questions. -Ognjen On 22.7.2011 12:22, Bobi St wrote: :) Well, whats wrong, not to specify JDK_HOME if its not needed ?!? or whats wrong in specifying JRE_HOME to jre6 ?!? --- Konstantin Kolinkoknst.koli...@gmail.com schrieb am Fr, 22.7.2011: Von: Konstantin Kolinkoknst.koli...@gmail.com Betreff: Re: Tomcat 7: Why is JDK needed ? An: Tomcat Users Listusers@tomcat.apache.org Datum: Freitag, 22. Juli, 2011 10:56 Uhr 2011/7/22 Bobi Sttemporaryb...@yahoo.de: Oh my, I got confused now :) So, if we dont need JDK; why cannt I start the server w/o having specified exactly a path to JDK. With only JRE_HOME specified it doesnt start. Probably you are doing something wrong. Google for smart questions. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
2011/7/22 Bobi St temporaryb...@yahoo.de: sorry, I thought the settings I was asking for, are valid for all OS. 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. 1. Do not top-post, http://en.wikipedia.org/wiki/Posting_style#Choosing_the_proper_posting_style 2. Be specific. What exact versions of everything? Does version.bat work for you? What exact values you are using? What are messages that are displayed on screen and in logs? Not only error message, but info messages before it. 3. Once again - read this: http://www.catb.org/~esr/faqs/smart-questions.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
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\binset JAVA_HOME= D:\apps\tomcat\apache-tomcat-7.0.19\bincatalina.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\binset JAVA_HOME=C:\Program Files\Java\jre6 D:\apps\tomcat\apache-tomcat-7.0.19\bincatalina.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
Re: Tomcat 7: Why is JDK needed ?
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\binset JAVA_HOME= D:\apps\tomcat\apache-tomcat-7.0.19\bincatalina.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\binset 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
Re: Tomcat 7: Why is JDK needed ?
Bobi, You are doing something wrong, but your sparse explanations make it difficult to determine what. Here is example how to run Tomcat just with JRE: C:\apps\apache-tomcat-7.0.11\binset JRE_HOME= C:\apps\apache-tomcat-7.0.11\binset JAVA_HOME= C:\apps\apache-tomcat-7.0.11\binstartup.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\binset JRE_HOME=C:\Program Files\Java\jre6\ C:\apps\apache-tomcat-7.0.11\binstartup.bat Using CATALINA_BASE: C:\apps\apache-tomcat-7.0.11 Using CATALINA_HOME: C:\apps\apache-tomcat-7.0.11 Using CATALINA_TMPDIR: C:\apps\apache-tomcat-7.0.11\temp Using JRE_HOME:C:\Program Files\Java\jre6\ Using CLASSPATH: C:\apps\apache-tomcat-7.0.11\bin\bootstrap.jar;C:\apps\apache-tomcat-7.0.11\bin\tomcat-juli.jar -Ognjen On 22.7.2011 14:15, Bobi St wrote: Hallo, sorry, I thought the settings I was asking for, are valid for all OS. 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. Best, --- Ognjen Blagojevicognjen.d.blagoje...@gmail.com schrieb am Fr, 22.7.2011: Von: Ognjen Blagojevicognjen.d.blagoje...@gmail.com Betreff: Re: Tomcat 7: Why is JDK needed ? An: Tomcat Users Listusers@tomcat.apache.org Datum: Freitag, 22. Juli, 2011 12:06 Uhr Bobi, What Konstantin is suggesting, is if you want to get your question answered, you *really* need to describe your problem in detail. Which OS, JRE and Tomcat version are you using, which Tomcat distribution (installer or .zip), how are your environment variables set, how do you try to start Tomcat, and what are exact error messages you get (might be on console or log files). Without that, people waste their time making guesses, or worse for you, ignore your questions. -Ognjen On 22.7.2011 12:22, Bobi St wrote: :) Well, whats wrong, not to specify JDK_HOME if its not needed ?!? or whats wrong in specifying JRE_HOME to jre6 ?!? --- Konstantin Kolinkoknst.koli...@gmail.com schrieb am Fr, 22.7.2011: Von: Konstantin Kolinkoknst.koli...@gmail.com Betreff: Re: Tomcat 7: Why is JDK needed ? An: Tomcat Users Listusers@tomcat.apache.org Datum: Freitag, 22. Juli, 2011 10:56 Uhr 2011/7/22 Bobi Sttemporaryb...@yahoo.de: Oh my, I got confused now :) So, if we dont need JDK; why cannt I start the server w/o having specified exactly a path to JDK. With only JRE_HOME specified it doesnt start. Probably you are doing something wrong. Google for smart questions. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bobi, On 7/22/2011 8:15 AM, Bobi St wrote: sorry, I thought the settings I was asking for, are valid for all OS. Sometimes, yes. But if you had told us everything up front, if would have been one question and one answer. You would have had your answer yesterday at 21:00 UTC. 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. Why would you set JDK_HOME (environment variable)? Only after installing (the latest) JDK, and setting JDK_HOME towards it, I could start Tomcat with the startup.bat. Something else must be happening. Are you starting as a service? If so, you will need to configure the JRE to use during the installation process, or through the service configuration utility. No amount of messing around with environment variables with make a bit of difference. If you are running from the command-line, what script are you using? If you use startup.bat which calls catalina.bat, you should read the scripts to see what environment variables are relevant. You'll notice that JDK_HOME is not one of them. Other options are potentially more useful. Read the script and you'll see what variables are relevant. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4p6jgACgkQ9CaO5/Lv0PDxNgCeNhD7ILk2bTgq5TGs6uomKoKc UGoAoKcU4M+bKQVJ2mHg+QCezyjmb0pb =UJCo -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 7: Why is JDK needed ?
Hi there, 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 ... Best regards,
Re: Tomcat 7: Why is JDK needed ?
It uses the Java compiler for activities such as compiling JSPs into Servlets into Java class files. All versions of Tomcat require the JDK. Sent from my BlackBerry device -Original Message- From: Bobi St temporaryb...@yahoo.de Date: Thu, 21 Jul 2011 19:58:53 To: users@tomcat.apache.org Subject: Tomcat 7: Why is JDK needed ? Hi there, 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 ... Best regards, - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7: Why is JDK needed ?
2011/7/22 Justin Randall ran...@hotmail.com: It uses the Java compiler for activities such as compiling JSPs into Servlets into Java class files. All versions of Tomcat require the JDK. 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. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org