evergreen icon indicating copy to clipboard operation
evergreen copied to clipboard

[New app]: Oracle JDKs/JREs

Open vedantmgoyal9 opened this issue 3 years ago • 6 comments

What is the new application?

https://www.oracle.com/java/technologies/jdk-script-friendly-urls/

Vendor site

https://www.oracle.com/java

Have you reviewed the list of supported applications?

  • [X] Supported apps at: https://stealthpuppy.com/evergreen/apps/

vedantmgoyal9 avatar Sep 11 '22 03:09 vedantmgoyal9

It appears that the JREs no longer include an update component, so finding the version number

Java 1.8 uses this, but I can't find anything similar for Java 17 or 18: https://javadl-esd-secure.oracle.com/update/1.8.0/map-m-1.8.0.xml

aaronparker avatar Sep 11 '22 04:09 aaronparker

https://www.oracle.com/java/technologies/jdk-script-friendly-urls/

vedantmgoyal9 avatar Sep 11 '22 05:09 vedantmgoyal9

The URLs are OK - there's nothing to return a version number (e.g. 18.0.2.1) though.

aaronparker avatar Sep 11 '22 05:09 aaronparker

We can scrape them from Download URLs.

vedantmgoyal9 avatar Sep 11 '22 05:09 vedantmgoyal9

The URL will only provide the major version number - e.g. https://download.oracle.com/java/18/latest/jdk-18_windows-x64_bin.msi. The current v18 release is 18.0.2.1 which that URL won't return.

There's nothing in the headers for the URL either. No way that I can see so far to return a version number like 18.0.2.1.

aaronparker avatar Sep 11 '22 06:09 aaronparker

I'll talk to oracle support and see if they can give any API for our use.

vedantmgoyal9 avatar Sep 11 '22 06:09 vedantmgoyal9

Found this: https://www.java.com/releases/releases.json

aaronparker avatar Sep 17 '23 06:09 aaronparker