openjdk
openjdk copied to clipboard
Missing FeatureOracleJavaSoft feature in Microsoft OpenJDK Windows install
Describe the bug Hi, the documented FeatureOracleJavaSoft is missing in Microsoft OpenJDK installs. Still true in 17.0.7 and 11.0.19 downloaded from https://learn.microsoft.com/en-us/java/openjdk/download
Desktop (please complete the following information):
Windows 10, 1822
MSFT Build of OpenJDK Version:
17.0.7 and 11.0.19 (and all versions before too)
To Reproduce:
Install Microsoft OpenJDK, the feature to permits installing JavaSoft registrey key is not available. I checked it with an MSI Editor and the Feature is not present in the msi file. The feature is documented on the page : https://learn.microsoft.com/en-us/java/openjdk/install FeatureOracleJavaSoft | Updates registry keys HKLM\SOFTWARE\JavaSoft.
Expected behavior
A feature which install the JavaSoft registry key used by a lot of application to find the current Java install. This feature is present in Adoptium's jdk, Zulu's JDK and much more.
Screenshots, Logs etc
Additional context
Here a screenshot of registry keys in the msi compared to others JDK (Zulu JDK on the right):
The fetures available in Microsoft JDK :
A customer was recently able to install this with 17.0.8 but it is still worth checking our latest installers and installers - 1
The issue persists with our 17.0.8 and 11.0.20 installers for Windows. We switched to the new installer scripts in the July PSU but that didn't bring the fix for some reason. Will investigate in time for JDK21/Oct-PSU.
The issue is also present in 21.x version installers.
Thanks @GeoSimos. Out of curiosity, why is this flag important to you?
Hi @brunoborges, I replied here https://github.com/microsoft/openjdk/discussions/295#discussioncomment-8628804.
@jmjaffe37 let's review if we need this feature at all.
If I recall correctly, this feature comes from the old days of JREs and integration with browsers.
@jmjaffe37 let's review if we need this feature at all.
If I recall correctly, this feature comes from the old days of JREs and integration with browsers.
If you can provide a way for us to detect the installed Java version and architecture, then it may not be required, however, lots of solutions are using those Registry keys to do several stuff.
Do you have some examples of tools that rely on this registry key to identify presence of Java installed?