Skip to content

Instantly share code, notes, and snippets.

@LordSuricato
Created November 19, 2017 17:01
Show Gist options
  • Save LordSuricato/ec00d620c7d31783d6e7a188895955c9 to your computer and use it in GitHub Desktop.
Save LordSuricato/ec00d620c7d31783d6e7a188895955c9 to your computer and use it in GitHub Desktop.

Add the PPA

 $ sudo add-apt-repository ppa:webupd8team/java

Update and install the installer script

$ sudo apt update
$ sudo apt install oracle-java8-installer

Set Java environment variables and Oracle JDK8 as default

$ sudo apt install oracle-java8-set-default

Check Java compiler version

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