How to Install Java 8 on Ubuntu 16

Tadashi Shigeoka ·  Wed, February 15, 2017

I installed Java 1.8.0_121 on Ubuntu 16.04.1 x64, so I’ll share the steps.

You can complete the Java installation by executing the following commands:

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

Check the Java version to confirm it’s installed and you’re done.

java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

By the way, the purpose of installing Java on Ubuntu this time was to set up serposcope.

Reference Information

That’s all from the Gemba.