/ java

Ubuntu 16.04 - Install Java

Java 8 OpenJDK

This will install Java version 8 from the ubuntu repositories.

sudo apt-get install openjdk-8-jre

Oracle Java 8 - Latest Stable

This will install Oracle's version of Java using a PPA courtesy of the webupd8 team.

sudo apt install python-software-properties software-properties-common -y
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer -y

Oracle Java 9 - Early Access

This is an early-access install of the upcoming version 9 from Oracle using a PPA courtesy of the webupd8 team.

sudo apt install python-software-properties software-properties-common -y
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt update
sudo apt install oracle-java9-installer -y
Stuart Page

Stuart Page

Stuart is a software developer with a passion for Linux and open source projects.

Read More