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

Windows Registry Key Changes Omitted from JDK 9 Migration Guide

XMLWordPrintable

    • x86_64
    • windows_10

      A DESCRIPTION OF THE PROBLEM :
      Between Java 8u144 and Java 9, there are significant changes to the data created by the JRE installer in the Windows registry. These changes will impact many existing applications, but are not mentioned in the JDK 8 migration guide.
       
      The Java 8u144 installer creates the following four Windows registry keys:
      [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
      "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8]
      [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_144]
      [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_144\MSI]

      And the Java 9 installer creates the following three Windows registry keys:
      [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE]
      [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE\9]
      [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE\9\MSI]

      Applications that search the registry for the installed version of Java will fail, primarily due to the abbreviation of "Java Runtime Environment" used in Java 8 and previous releases, to the much shorter "JRE" used for Java 9. This is a very significant change and should not be omitted from the release notes.

      There is also one less key being created by the Java 9 installer, which is based on the full, rather than short java version string. Any applications relying on that will also fail.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      This issue should be covered in two places:
      1) A summary notification in the Release Notes "Important Changes and Information".
      2) Migration details in the JDK 9 Migration Guide.
      ACTUAL -
      There is no mention of this significant issue in any documentation. The most damaging aspect is that there was no advance information supplied prior to release.

      URL OF FAULTY DOCUMENTATION :
      https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-D867DCCC-CEB5-4AFA-9D11-9C62B7A3FAB1

            mbeck Marilyn Beck (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: