Skip to content

Instantly share code, notes, and snippets.

@phillipsj
Created June 21, 2018 17:03
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save phillipsj/950235f411dec9e0e90e199c6dde12e9 to your computer and use it in GitHub Desktop.
Save phillipsj/950235f411dec9e0e90e199c6dde12e9 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
@DavidTheProgrammer
Copy link

You're a lifesaver! Thank you for this

@JLiu1272
Copy link

Thank you!! You just threw me this floaty :P
image

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