DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28263>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28263 Tomcat 5 installer Windows detects JRE instead of JDK ------- Additional Comments From [EMAIL PROTECTED] 2004-04-25 22:52 ------- Actually the Function findJavaPath, in installation script, already look for the JAVA_HOME environment variable as a first try, and this is correct. The problem is in the second try, when it looks into Windows Registry. The high-level algorithm for this function is: 1. Try to read JAVA_HOME environment variable. 2. If it exists, JDK is considered found, end function. 3. Else (JAVA_HOME not defined), try to read Windows Registry for JDK installation. 4. If Registry key for JDK is found, The script for Tomcat 4 correctly do the step 3 looking for the SDK installation key. But the Tomcat 5 installation script looks for JRE key in the step 3, which is obviously wrong. I don't know why the error was introduced in Tomcat 5 installation, since it was correct in Tomcat 4. But it IS a bug. BTW, the registry keys I'm talking about are conformant to all versions of Windows installation for Java SDK from Sun Microsystems, including the most recent, 1.4.2_04. I'm sorry, but I can't believe that a basic bug like that will remain existing since it can be easily solved and I already sent a patch. Which Tomcat project commiter is familiar to the Windows installation script? Does anyone else agree with me, or everybody agree with mr. Remy Maucherat that the error should not be fixed? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]