openjdk icon indicating copy to clipboard operation
openjdk copied to clipboard

Missing FeatureOracleJavaSoft feature in Microsoft OpenJDK Windows install

Open apique13 opened this issue 1 year ago • 9 comments

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 Capture

Additional context

apique13 avatar Jun 16 '23 07:06 apique13

Here a screenshot of registry keys in the msi compared to others JDK (Zulu JDK on the right): msi_compare The fetures available in Microsoft JDK : features

apique13 avatar Jun 16 '23 08:06 apique13

A customer was recently able to install this with 17.0.8 but it is still worth checking our latest installers and installers - 1

karianna avatar Aug 01 '23 04:08 karianna

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.

d3r3kk avatar Aug 04 '23 18:08 d3r3kk

The issue is also present in 21.x version installers.

GeoSimos avatar Jan 29 '24 14:01 GeoSimos

Thanks @GeoSimos. Out of curiosity, why is this flag important to you?

brunoborges avatar Jan 31 '24 07:01 brunoborges

Hi @brunoborges, I replied here https://github.com/microsoft/openjdk/discussions/295#discussioncomment-8628804.

GeoSimos avatar Feb 29 '24 10:02 GeoSimos

@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.

brunoborges avatar Jul 09 '24 23:07 brunoborges

@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.

GeoSimos avatar Jul 10 '24 12:07 GeoSimos

Do you have some examples of tools that rely on this registry key to identify presence of Java installed?

brunoborges avatar Jul 12 '24 21:07 brunoborges