Here's a great answer on how to automate loading Java JDKs on Linux:
Downloading Java JDKs on Linux via wget is shown on the license page
The described method no longer works. It seems that Oracle has again changed the limits on its boot servers to block this method. I suppose they don’t want Java to be used in server auto-scaling systems like AWS. What are they thinking?
The specific command I'm trying to download is to download the latest version of 7u51 to the AWS server so that I can install my web applications:
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2%2Fwww.oracle.com%2F" "http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.rpm"
This does not apply to the OTN license agreement anymore, as indicated in this closed answer:
https://stackoverflow.com/a/2123125/ ...
Trying this from my browser, I see that the download link adds additional authentication to the request parameter:
http:
Copying and pasting this link using AuthParam in a call wgetdoes not work either. My initial hunch is that it is tied to a session or IP address.
It is not recommended to upload this manually to the server (or hundreds of servers a hundred times a day), so I hope for a workaround that will work with current limitations.
So TODAY, is there a way around the download of the latest JDK? Or should I just completely abandon Oracle?
source
share