Wednesday 23 March 2016

How to download JDK on linux command line?

If you try to download JDK using wget your command might fail with a 302 error. You need to set some options as mentioned below to download the JDK.


wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u73-b02/jdk-8u73-linux-x64.tar.gz


No comments:

Post a Comment