Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Oracle JDK on Ubuntu
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" $JDK_URL
sudo mkdir -p /opt/jdk
sudo tar -zxf jdk-8u74-linux-x64.tar.gz -C /opt/jdk
sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_74/bin/java 100
rm jdk-8u74-linux-x64.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.