Here’s a one-liner to get around evil Oracle’s “click the EULA” nonsense, and download their stupid JDK from the linux shell (in this case, the rpm version):

wget --no-cookies --header "Cookie:;" --no-check-certificate -O jdk-7u17-linux-x64.rpm

Note that you’ll have cruft at the end of the filename after downloading unless you use the -O option (thanks Byron).

For other downloads, just change the target and output.

What fun. Original magic cookie fu by this guy, thanks!


  1. Byron says:

    Add the -O at the end of the line to specify an exact file name. This will give you a useful file name such as ‘jdk-7u17-linux-x64.rpm’

    instead of ‘jdk-7u17-linux-x64.rpm?AuthParam=1370449659_2617a75e2f02e6a0b56dc87cd02ada0f’


    wget –no-cookies –header “Cookie:;” –no-check-certificate -O jdk-7u17-linux-x64.rpm

  2. m says:

    Thanks Byron!! I updated the post.

  3. Miklos Krivan says:

    Great help, many thanks!

Leave a Reply