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

Author

Programster

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

comments powered by Disqus
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites. More info.