Oracle recently switched to force everyone to acknowledge their license before downloading the JDK. That’s not a big deal, except that it doesn’t work from text-mode console browsers like lynx or elinks. Those of us who need Java on the server (like CentOS/RedHat) are stuck in an endless loop.
Thankfully @kdecherf hacked up a wget command to force-feed the proper cookies.
If you want to grab 1.6.0_31, replace the URL in his example with:
http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jdk-6u31-linux-x64-rpm.bin
Note: I’ve already agreed to the terms from my desktop; I just can’t download it to the server.
UPDATE 2016 – @kdecherf’s URL has been updated above for JDK7. I find myself returning to it regularly so I’m capturing a JDK8 download URL here for posterity:
wget --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/8u92-b14/jdk-8u92-linux-x64.rpm
Comments are closed.