Stewardship
Be aware that Oracle stopped providing free-of-cost security updates to Java 8. See Oracle Java SE Support Roadmap.
Red Hat (IBM) has taken stewardship of the OpenJDK 8 & OpenJDK 11 LTS releases.
Oracle branded
Oracle JDK 8 Update 221 is available here. Be sure to read the terms of the license, and be aware of their intention towards further updates.
OpenJDK
The open-source distributions based on OpenJDK are available from various vendors.
The first that comes to mind is AdoptOpenJDK.net, providing Java 8 with Update 282 currently.
Amazon provides OpenJDK 8 in their Corretto offering. Especially suitable if you deploy to AWS.
Zulu by Azul Systems also provides OpenJDK 8, certified as Java. They offer optional support plans as well.
See the nifty diagram I made for sourcing Java 11. Some of those same vendors also provide Java 8, with and without paid support.
Answer from Basil Bourque on Stack OverflowVideos
You can extract the JDK folder from the Installation EXE.
Check this link for the steps. The post was for JDK 1.7 it will work for JDK 1.8 also
Do the following.
Steps
- Download JDK from Oracle
- Download and Install 7-zip from here
- Open installition exe using 7-Zip
- Extract the tools.zip
- Extract the content of tools.zip to a folder (e.g. c:\jdk).
- Open the extracted folder in cmd prompt.
- Execute
for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar"command - Set
JAVA_HOMEto the jdk (e.g c:\jdk) folder. - Add
%JAVA_HOME%/binto the PATH env variable.
Testing
Run the following command to check the installation, it will print the version of JDK.
c:> javac -version
javac 1.7.0_51
NOTE: Tested with JDK 1.7 and 1.8
Update 1
Edited the answer to add the steps in the answer itself instead of the link to a blog post.
Update 2
For 64-Bit please check unpack-jdk-x64.bat by grabantot
I was looking for a solution to this as well. I'm not sure why the OP wanted to do this. I'm just trying to get a newer version of java for new development while not interfering with an older Java install which a legacy application requires (I'd like to update the legacy app, but it's not an option, now)
I think the hack I am going to try is this:
- Install 1.8
- Take a copy of the install folder
- Uninstall 1.8
- Reinstall / Repair 1.7
- restore the copy of 1.
I'm sure if I had a better understanding of what the install is doing, this would not be necessary.