Skip to content

Instantly share code, notes, and snippets.

@uarun
Created January 26, 2016 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uarun/d29e60da9338d546fada to your computer and use it in GitHub Desktop.
Save uarun/d29e60da9338d546fada to your computer and use it in GitHub Desktop.
Downloading Java JDK from the command line

Downloading JDK

Using wget

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

Using curl

curl -v -j -k -L -H "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz > jdk-7u79-linux-x64.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment