When I try to download Java from Oracle I instead end up downloading a page telling me that I need agree to the OTN license terms.
Sorry!
In order to download products from Oracle Technology Network you must agree to the OTN license terms.
Be sure that…
- Your browser has "cookies" and JavaScript enabled.
- You clicked on "Accept License" for the product you wish to download.
- You attempt the download within 30 minutes of accepting the license.
How can I download and install Java?
Best Answer
Works as of July 27th, 2021 for JDK 16
Works as of November 5th, 2020 for JDK 15
Works as of 07-11-2020 for JDK 14
PS: Alf added this ( me ) :-) this, I couldn't figured out how to just commented at the end... Enjoy it.
UPDATED FOR Oracle JDK 11
UPDATED FOR JDK 10.0.2
UPDATED FOR JDK 10.0.1
UPDATED FOR JDK 9 it looks like you can download it now directly from java.net without sending a header
UPDATED FOR JDK 8u191
TAR GZ:
RPM:
UPDATED FOR JDK 8u131
RPM:
TAR GZ:
RPM using curl:
In all cases above, subst 'i586' for 'x64' to download the 32-bit build.
curl
can be used in place ofwget
.UPDATE FOR JDK 7u79
TAR GZ:
RPM using curl:
Once again, make sure you specify the correct URL for the version you are downloading. You can find the URL here: Oracle JDK download site
ORIGINAL ANSWER FROM 9th June 2012
If you are looking to download the Oracle JDK from the command line using
wget
, there is a workaround. Run thewget
command as follows:Be sure to replace the download link with the correct one for the version you are downloading.