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?
this command can download jdk8 tgz package at now (2018-09-06), good luck !
For those needing JCE8 as well, you can download that also.
Or
I solve this (for Debian based Linux distros) by making packages using
java-package
a few times (for various architectures), then distributing them internally.The big plus side is that this method always works; no matter how crazy Oracle's web pages become. Oracle can no longer break my build!
The downside is that it's a bit more work to set up initially.
make-jpkg jdk-7u51-linux-x64.tar.gz
. This createsoracle-java8-jdk_8_amd64.deb
For distribution over the Internet, I suggest using a password protected apt repository or provide raw packages using symmetric encryption:
Of course providing (unencrypted) .deb packages on the internet is probably a violation of your license agreement with Oracle, which states:
On the receiving end, if you have a password protected apt repo, all you need to do is
apt-get install
it. If you have raw packages, download, decrypt anddpkg -i
them. Works like a charm!you should try:
latest tested,
Be aware that certificate check is disabled if you care about absolute security. : )
Try
if you are like me trying to get Oracle JDK 6.
source: Oracle JVM download using curl/wget