- This topic has 1 reply, 2 voices, and was last updated 18 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
simonbakerMemberI have a related problem with Tomcat5.5.
Tomcat 5.5 docs seem to imply the full JDK is not needed because of eclipse. My tests show that to be true when I start Tomcat5.5 using the startup.bat under Windows XP Home. It only requires the system environment variable JRE_HOME to be set to my jre, i.e. “C:\Program Files\Java\jre1.5.0”.
But when I install Tomcat5.5 as a service (using service.bat install), it won’t start, and the stdout.log file has the error:
“This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.”I tried setting JAVA_HOME to the same path as JRE_HOME, but that didn’t help. I checked the registry and I do have a HKEY_LOCAL_MACHINE|SOFTWARE|JavaSoft|Java Development Kit|1.4 key pointing to my Borland JBuilder JDK location. Does anyone know if the service finds the java runtime differently from the startup.bat, or if there is some other setting I need to set?
Riyad KallaMemberTomcat 5.5 docs seem to imply the full JDK is not needed because of eclipse.
Technically speaking it’s because Tomcat ships the JDT Java compiler that the Eclipse group developed and included in Eclipse. So it’s not necessarily Eclipse, but the compiler itself they ripped out and shipped with Tomcat (which is cool, I just wnated to clarify that so you didn’t think there was a connection between your Eclipse install and Tomcat for example).
I tried setting JAVA_HOME to the same path as JRE_HOME, but that didn’t help. I checked the registry and I do have a HKEY_LOCAL_MACHINE|SOFTWARE|JavaSoft|Java Development Kit|1.4 key pointing to my Borland JBuilder JDK location. Does anyone know if the service finds the java runtime differently from the startup.bat, or if there is some other setting I need to set?
There is another registry key that indicates the current active JDK, make sure that one is set to your 5.0 JRE.
Also you can check the Tomcat service settings somewhere, I don’t remember but there is some utility that comes with it to check the service settings and in there you can specify the JRE it uses to run.
-
AuthorPosts