United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6520670 1.5.0_11 installer writes wrong JavaHome value in Windows registry
6520670 : 1.5.0_11 installer writes wrong JavaHome value in Windows registry

Details
Type:
Bug
Submit Date:
2007-02-02
Status:
Resolved
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2007-03-27
Component:
install
OS:
windows_2003,windows_xp
Sub-Component:
install
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
5.0,5.0u12
Fixed Versions:
5.0u12

Related Reports
Duplicate:
Relates:

Sub Tasks

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.
                                     
2007-02-02



Hardware and Software, Engineered to Work Together