Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"" \
-O jdk-7-linux-x64.rpm
# ubuntu
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"" \
-O jdk-7-linux-x64.tar.gz
# then
tar -xzvf jdk-7-linux-x64.tar.gz
Copy link

mfeliciano commented Jun 11, 2019

This worked for me, for getting 8u131 version, which I needed: wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie"

I got this from, which lists commands for various versions.

Copy link

jenishngl commented Aug 14, 2019

tried the above and doesnt work anymore
wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie"

We are getting the below error
"HTTP request sent, awaiting response... 401 Authorization Required"

Copy link

jmdsg commented Aug 31, 2019

None of the above commands seems to work anymore.

I was able to download it with the following:

wget \
--continue \
--no-check-certificate \
-O jdk-11.0.4_linux-x64_bin.rpm \
--header "Cookie: oraclelicense=a" \

Copy link

robertlugg commented Jan 7, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment