Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml file moved? #1

Open
frosted69 opened this issue Jan 17, 2018 · 4 comments
Open

xml file moved? #1

frosted69 opened this issue Jan 17, 2018 · 4 comments
Assignees

Comments

@frosted69
Copy link

I got the following error when I executed the script:

WARNING: Failed to access http://javadl-esd.sun.com/update/9.0.4/map-m-9.0.4.xml
Exiting without checking the latest Java version numbers or without updating Java (at Step 10).

It looks like there's no such file as http://javadl-esd.sun.com/update/9.0.4/map-m-9.0.4.xml

I tried to translate the URI to https://javadl-esd-secure.oracle.com/ but it seems there's no equivalent path available.

@frosted69
Copy link
Author

@auberginehill auberginehill self-assigned this Jan 21, 2018
auberginehill added a commit that referenced this issue Jan 21, 2018
Selects the second result from java_baseline.csv
#1
@auberginehill
Copy link
Owner

Thanks for the heads up!

The culprit seemed to be the java_baseline.csv file

$baseline_url = "https://javadl-esd-secure.oracle.com/update/baseline.version"
$baseline_file = "$path\java_baseline.csv"
$download_baseline.DownloadFile($baseline_url, $baseline_file)

...which used to list the latest version number at the top. It seems that that isn't the case anymore.

AFAICS based on the https://java.com/en/download/ page

Version 8 Update 161
Release date January 16, 2018

is currently (Jan 21, 2018) the latest Java version, and that number is listed at the second topmost position in the https://javadl-esd-secure.oracle.com/update/baseline.version page and on the java_baseline.csv file generated by this script, so I switched to selecting the second result from the java_baseline.csv file instead, when determining the latest Java versions (at Step 9). I'm frankly not quite sure, to what does the 9.0.4 refer to in that file.

Tried to fix this bug in 2f95215

@auberginehill
Copy link
Owner

auberginehill commented Jan 22, 2018

...Well, I wish it was that simple.

After a little more investigation to this matter it seems that with the introduction of Java SE 9 things got moved around a bit, the version naming convention was changed and that the most recent Java version is actually different for the 32-bit and 64-bit Javas, since the Java SE 9 seems to come only with a x64 installer.

So the 2f95215 seems to be OK only for the 32-bit Javas, and for the 64-bit Javas the version string for the latest update release would be 9.0.4+11 (where "+" means "build" and where the version number is 9.0.4).

Java naming conventions

Old Java naming convention New Java naming convention New Java versions translated to "old" format (uniform "legacy" format)** JRE Family Version Available versions Currently in use Java naming convention
... 9.0.4+11 1.9.0_4-b11 9 only x64 9.0.4+11
1.8.0_161-b12 ... 1.8.0_161-b12 8 i586 and x64 1.8.0_161-b12
1.7.0_171-b11 ... 1.7.0_171-b11 7 ... 1.7.0_171-b11
1.6.0_181-b10 ... 1.6.0_181-b10 6 ... 1.6.0_181-b10

** not in use after JRE Family Version 8

Help wanted

At the heart of the matter is the "missing" / "not yet indentified" xml-file referenced by the OP, which would ultimately reveal the download links for Java SE 9 (and later versions of Java) or a similar online source. Shall not a suitable source be found or reported by a kind contributor, perhaps one could refer to http://www.oracle.com/technetwork/java/javase/downloads/index.html and try to figure out the download links from there.

Roadmap

1.0. Security Baselines

2.0. JRE Family 8

2.1. First XML-file - jre8 (Step 10)

2.2. Second XML-file - jre8 (Step 11)

2.3. Download links 32-bit:

2.4. Java SE Binaries Checksums - jre8

3.0. JRE Family 9

3.1. XML-file or a similar online source (for JRE Family 9 and later versions of Java), which would ultimately reveal the download links for Java SE 9 - or other related info
Status: "missing" / "not yet indentified" / help wanted
Possible solution: Perhaps the info could be parsed from http://www.oracle.com/technetwork/java/javase/downloads/index.html ("URL_1")

3.1.1. find "/jre9-downloads" from "URL_1" to reveal the URL of the "jre9 Link Page" (i.e. http://www.oracle.com/technetwork/java/javase/downloads/jre9-downloads-3848532.html)

3.1.2. from the "jre9 Link Page" find "windows-x64_bin.exe'" to reveal the download URL, i.e. downloads['jre-9.0.4-oth-JPR']['files']['jre-9.0.4_windows-x64_bin.exe'] = { "title":"Windows", "size":"96.62 MB","filepath":"http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jre-9.0.4_windows-x64_bin.exe", "SHA256":"874b71eeb072163d7a07cf03c3c0f7061e24cf739dc926e7f058a8b6b6dc7edf"};

3.2. Download links 64-bit (JRE Family 9):

3.3. Java SE Binaries Checksums - jre9

Other Java update projects (manually updated):

https://github.com/echizenryoma/Chocolatey-Package/blob/master/jdk.portable/tools/ChocolateyInstall.ps1

@jalhamada
Copy link

Although I have updated to the latest Java version!, I got the following error when I executed the script:

WARNING: Java 8 Update 361 seems to be outdated.

The most recent non-beta Java version is Java 0 Update 0. The installed 32-bit Java version 8.0.3610.9 needs to be updated.

another Problem is:

WARNING: Failed to access https://javadl.oracle.com/webapps/download/GetFile/1.8.0_361-b09/0ae14417abb444ebb02b9815e2103550/windows-i586/jre-0u0-windows-x64.exe

Exiting without installing a new Java version (at Step 16).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants