Skip to content

Instantly share code, notes, and snippets.

@ivanionut
Forked from phillipsj/install-openjdk-8.sh
Created December 27, 2020 08:29
Show Gist options
  • Save ivanionut/fa038571aa74afb79f7eea35f57046f9 to your computer and use it in GitHub Desktop.
Save ivanionut/fa038571aa74afb79f7eea35f57046f9 to your computer and use it in GitHub Desktop.
Quick little installation script for installing AdoptOpenJDK on Ubuntu 16.04.
wget -q https://github.com/AdoptOpenJDK/openjdk8-releases/releases/download/jdk8u172-b11/OpenJDK8_x64_Linux_jdk8u172-b11.tar.gz
tar -xf OpenJDK8_x64_Linux_jdk8u172-b11.tar.gz
sudo mkdir /usr/lib/jvm && sudo mv jdk8u172-b11 /usr/lib/jvm/jdk8u172-b11
export JAVA_HOME=/usr/lib/jvm/jdk8u172-b11
export PATH=/usr/lib/jvm/jdk8u172-b11/bin
java -version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment