installer icon indicating copy to clipboard operation
installer copied to clipboard

Windows installer backward compatibility issue (Windows Registry)

Open mast76 opened this issue 4 years ago • 4 comments

Summary

Adoptium MSI installer does not set the same registry settings as the Oracle installer.

The most important one missing is "CurrentVersion". But also the entire "Java Runtime Environment" (a.k.a. public JDK) section is missing.

Steps to reproduce

  • Install the OpenJDK8U-jdk_x64_windows_hotspot_8u302b08.msi
  • Choose "JavaSoft (Oracle) registry keys"

Expected results

The OracleJDK registry settings for JDK:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
"CurrentVersion"="1.8"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8]
"JavaHome"="C:\\Program Files\\Java\\jdk1.8.0_111"
"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_111]
"JavaHome"="C:\\Program Files\\Java\\jdk1.8.0_111"
"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8.0_111\MSI]
"INSTALLDIR"="C:\\Program Files\\Java\\jdk1.8.0_111\\"
"NOSTARTMENU"="0"

The OracleJDK registry settings for public JRE:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.8"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8]
"RuntimeLib"="C:\\Program Files\\Java\\jre1.8.0_111\\bin\\server\\jvm.dll"
"JavaHome"="C:\\Program Files\\Java\\jre1.8.0_111"
"MicroVersion"="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_111]
"JavaHome"="C:\\Program Files\\Java\\jre1.8.0_111"
"MicroVersion"="0"
"RuntimeLib"="C:\\Program Files\\Java\\jre1.8.0_111\\bin\\server\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_111\MSI]
"INSTALLDIR"="C:\\Program Files\\Java\\jre1.8.0_111\\"
"JU"=""
"OEMUPDATE"=""
"FROMVERSION"="NA"
"FROMVERSIONFULL"=""
"PRODUCTVERSION"="8.0.1110.14"
"EULA"=""
"JAVAUPDATE"="1"
"AUTOUPDATECHECK"="1"
"AUTOUPDATEDELAY"=""
"FullVersion"="1.8.0_111-b14"

Actual results

The OpenJDK registry settings

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8]
"JavaHome"="C:\\Program Files\Java\\jdk-8.0.302.8-hotspot\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\8.0.302.8]
"JavaHome"="C:\\Program Files\Java\\jdk-8.0.302.8-hotspot\\"

Triaging info

Java version:

openjdk version "1.8.0_302" OpenJDK Runtime Environment (Temurin)(build 1.8.0_302-b08) OpenJDK 64-Bit Server VM (Temurin)(build 25.302-b08, mixed mode)

What is your operating system and platform? Windows 7 64bit

How did you install Java?

Used the MSI installer.

Did it work before? Yes, with OracleJDK 1.8.0_111

Did you test with other Java versions? Yes, with OracleJDK 1.8.0_111

mast76 avatar Sep 22 '21 13:09 mast76

When you run the installer there is an option for it to behave like Oracle's. Those checkboxes are unticked by default so you'll need to rerun the installer and select them

karianna avatar Sep 23 '21 11:09 karianna

@karianna Please read my description once more. I am using the install option "JavaSoft (Oracle) registry keys". It only sets a small subset of the registry keys.

mast76 avatar Sep 23 '21 14:09 mast76

@karianna Thanks.

mast76 avatar Sep 24 '21 12:09 mast76

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

github-actions[bot] avatar May 04 '22 14:05 github-actions[bot]