1

I am having a hard time download OpenJDK for Linux (RedHat). I do not see any links to download the latest version of jdk8 on site https://openjdk.java.net/projects/jdk8/

There is a link for Early Access ( https://jdk.java.net/8/ ) but I am not looking for that release as it clearly states "Early-access (EA) functionality might never make it into a general-availability (GA) release.". I would like to download one that is in GA (General Availability).

The archive link does not provide any information for jdk8. https://jdk.java.net/archive/

1

Why not use the one that Redhat provides? Which is the preferred way of installation, judging from the OpenJDK install page.

yum info java-1.8.0-openjdk

Name        : java-1.8.0-openjdk 
Arch        : x86_64
Epoch       : 1
Version     : 1.8.0.181
Release     : 3.b13.el7_5
Size        : 501 k
From repo   : rhel-7-server-rpms

Answering the comments:

Version locking can be achieved with yum-plugin-versionlock or rather by providing a local mirror (using Foreman and its 'Content Views' feature).

Downloading a RPM to a box can be done from a properly registered host with yumdownloader (see the yum-utils package).

Should you nonetheless be keen on installing your own version, creating a RPM is recommended. Take a look on how the Redhat/CentOS folk do it or use one of the other approaches as inspiration.

  • Because I dont control the yum repo and the jdk version will keeping getting updated on the repo. I need to be able to control the jdk version that I install across the enterprise. – user1074593 Dec 17 '18 at 19:07
  • If there is way I can download that rpm to a tar.gz file, I can live with it. – user1074593 Dec 17 '18 at 19:08
  • I've updated my answer. – fuero Dec 17 '18 at 19:13
  • 1
    @user1074593 Why do you want a tarball of Java instead of a fully supported package from Red Hat? That sounds like a really bad idea. – Michael Hampton Dec 17 '18 at 19:20
  • 1
    @user1074593 If you install this version, you'll remain on this version until you explicitly install another version. I don't know where you got the idea that you would be upgraded without your knowledge, but it doesn't appear to be true. – Michael Hampton Dec 17 '18 at 19:29
1

Note that openjdk.java.net is for builds of the OpenJDK provided by Oracle (which is not the same as Oracle JDK published under OTN license).

An alternative would be to use another distribution of OpenJDK:

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.