java - How to install openJdk 8 in windows 64 bit os - Stack Overflow
Clarification of OpenJDK 8 end of life
OpenJDK 8 is maintained by RedHat. They will support Java 8 until 2026: https://access.redhat.com/articles/1299013
Most OpenJDK vendors will do the same. Some (like Azul) are committing to December 2030 like Oracle. You should check with your vendor.
More on reddit.comJEP 265 comes to OpenJDK 8
We have integrated the Marlin engine into our Zulu build of OpenJDK 8
Thats a difference
More on reddit.comHow to install Oracle JDK 8 in opensuse tumbleweed?
Videos
Factsheet
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.
The Oracle Java SE support roadmap site says "extended support until December 2030". Will OpenJDK be covered under this support (i.e. security updates), or, is it it only available for paid support to OracleJDK?
OpenJDK 8 is maintained by RedHat. They will support Java 8 until 2026: https://access.redhat.com/articles/1299013
Most OpenJDK vendors will do the same. Some (like Azul) are committing to December 2030 like Oracle. You should check with your vendor.
https://adoptopenjdk.net/support.html
Do you men adoptopenjdk? On their official page it states that Java 8 will be available at least till May 2026. It doesn't say anything about 2030.
Since they are different distributions I doubt that Oracle will make the Updates available for non paying customer.
Edit: the project moved to Adoptium...
https://adoptium.net/support.html
Editors note: This answer is outdated as the PPA’s listed are not available anymore.
You can do this for;
Final Update
JDK
sudo apt-get install openjdk-8-jdk
JRE
sudo apt-get install openjdk-8-jre
Old Update
I found two repository but I do not recommend
OpenJDK builds (all archs)
ppa:openjdk-r/ppaOpenJDK 8 backport for trusty
ppa:jochenkemnade/openjdk-8
Original Message
If you really want to use OpenJDK, you have to compile from source. There is not still any PPA for OpenJDK.
It has been requested at https://bugs.launchpad.net/ubuntu/+bug/1297065
I recommend you to use Webup8 Oracle Java8 Installer
Note: WebUpd8 team's PPA has been discontinued with effective from April 16, 2019. Thus this PPA doesn't have any Java files. More information can be found on PPA's page on Launchpad. Hence the below method no longer works and exists because of historical reasons.
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer
To automatically set up the Java 8 environment variables
sudo apt-get install oracle-java8-set-default
Check it
java -version
So you have to wait to use OpenJDK8
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
sudo update-alternatives --config javac