Skip to content

Instantly share code, notes, and snippets.

@zhiguangwang
Last active January 28, 2016 02:48
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 zhiguangwang/1f559333870e634a6421 to your computer and use it in GitHub Desktop.
Save zhiguangwang/1f559333870e634a6421 to your computer and use it in GitHub Desktop.
Download Oracle JDK via CLI with license bypass.
wget --header "Cookie: oraclelicense=accept-securebackup-cookie" [DOWNLOAD-URL]

Example: download JDK 8u66 for Mac OS X

wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u66-b17/jdk-8u66-macosx-x64.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment