Now my questions: My JDK installation (see above) has no javac.exe and jdb.exe in JAVA_HOME\bin (JAVA_HOME points to the root of the JDK (not JRE!)). Is this Ok for Suns JDK 5.0 Update 1? When has it changed? Why?
Tomcat 5.5x ships with it's own compiler (Eclipse's compiler) so the full JDK is no longer needed. Unfortunately, the scripts for starting Tomcat didn't get updated right away.
I re-wrote the Unix shell scripts to look for a JRE_HOME and then, if not found, to use JAVA_HOME. From what I understand the writers of the Windows installer, have done the same for people starting Tomcat from the Windows Services Console or from the Start Menu buttons.
As of yet, nobody has re-written the batch scripts to work this way. As the last message in the bug report that you quoted says, doing so is a low priority since it is assumed that people starting Tomcat from the batch scripts are most likely programmers who will have a full JDK on their system.
If you're developing a Servlet/JSP app, download and install JDK1.5. (now called JDK5.0) Then set your JAVA_HOME evironment variable to point to it.
If you don't want a full JDK on your production box but need to be able to compile JSPs on the fly, use the windows installer and run Tomcat as a service.
Double check and make sure that you've downloaded the full JDK and not the JRE. Sun's great about moving and renaming their links to make it as confusing as possible for people to get the right one. [ February 12, 2005: Message edited by: Ben Souther ]
Yeah I have JDK 1.5.0_01 installed and Tomcat 5.5.7, they are there as expected. Could he have downloaded the JRE and mistaken it for the JDK?
posted 14 years ago
Thank you for your replies.
I had indeed installed the JDK 5.0 Update 1, but during the installation I decided to install the JRE into the SAME direktory. Big mistake, because some JDK files got deleted from the JAVA_HOME/bin directory.
Reinstalled the JDK now with DIFFERENT directories for JDK and JRE and everything is fine.