JDK-6520670 : 1.5.0_11 installer writes wrong JavaHome value in Windows registry
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 5.0,5.0u12
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2003,windows_xp
  • CPU: x86
  • Submitted: 2007-02-02
  • Updated: 2013-06-04
  • Resolved: 2007-03-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0u12 b02Fixed
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Windows XP

A DESCRIPTION OF THE PROBLEM :
During installation, the installer write the JavaHome path to the Windows registry. In 1.5.0_11, it just writes "1" instead of the path:

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.5]
"JavaHome"="1"
"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.5.0_11]
"JavaHome"="1"
"MicroVersion"="0"

So, applications, that need this, fail to start (like NetBeans).

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install JDK 1.5.0_11. This was OK since 1.5.0_10.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.5]
"JavaHome"="D:\jdk5.0"
"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.5.0_11]
"JavaHome"="D:\jdk5.0"
"MicroVersion"="0"
ACTUAL -
See above.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Change the registry manually after installation.

Comments
EVALUATION The issue was regression caused by the fix of 6398636. It was due to a missing registry key. The issue was not applied to Java 6 and Java 7 The fix is to update the file Registry.idt with the registry entry listed below install\make\installer\bundles\windows\ishield\sdk\sdk\Registry.idt " Registry1 2 Software\JavaSoft\Java Development Kit\[JDK_VERSION]\MSI INSTALLDIR [INSTALLDIR] szMAJORVERSIONMINORVERSIONMICROVERSIONCOMPUPDATEVERSION 0 " Since 5u12 is maintained by sustain group. I updated the Responsible Manager to reflect that. I have provided the detailed fix above. I also verified the fix with developer build. Please let me know if there are more questions.
02-02-2007