Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6520670

1.5.0_11 installer writes wrong JavaHome value in Windows registry

    XMLWordPrintable

Details

    • b01
    • b02
    • x86
    • windows_2003, windows_xp
    • Not verified

    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.

      Attachments

        Issue Links

          Activity

            People

              asaha Abhijit Saha
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: