Opend JDK 8
java - How to install openJdk 8 in windows 64 bit os - Stack Overflow
Finding OpenJDK 8 binaries for MacOs
Can't download Java 8 without an Oracle account?
Videos
Factsheet
Hi all!
So I have noticed that Oracle has moved JDK 8 behind a log in. I thought that they were only supposed to do that for JDK 9 and above? Any ways I need JDK 8 and it has been removed from OpenJDK as well. Is there any place legally that I can obtain JDK 8 or am I going to be reduced to pirating from sketchy ass websites?
The reason why I need JDK 8 is because there is a bug within IntelliJ and what I am trying to do apparently only works for JDK 8 due to the bug. I saw that there is a ticket in with JetBrain but looks like no movement in 2 years.
So any suggestions would be helpful.
Amazon offers an open jdk for Windows (and other OS), but just for Java 8, 11 and 16. You can download it from here: https://aws.amazon.com/es/corretto/
After installing it and running the java -version command, you will see something like this:
>java -version openjdk version "1.8.0_242" OpenJDK Runtime Environment Corretto-8.242.08.1 (build 1.8.0_242-b08) OpenJDK 64-Bit Server VM Corretto-8.242.08.1 (build 25.242-b08, mixed mode)
The best way to do this is to use the builds from adoptopenjdk. They're very high quality and come in multiple variants for Windows ranging from zip files to MSI installers. Dead simple to install JDK 8, 11 or 15.
But, after the installation when I tried checking the version using command java -version it's showing like regular JDK.
This is because JAVA_HOME is pointing to your old JDK. You need to go to Control Panel and change the Environment Variables. Just do a search on Windows 10 for "Environment Variables" to easily find that configuration panel.
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.
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:
- The free version of Azul Zulu
- AdoptOpenJDK has both HotSpot and OpenJ9
- Or see this blog entry by Stephen Colebourne, which gives links to other distributions: Time to look beyond Oracle's JDK .