How to install Java on Ubuntu 18.04 Bionic Beaver Linux -


Let's start by adding a PPA repository:

Namely they are java8 and java9.

To install Java 8 execute:

This is a companion discussion topic for the original entry at


SÅ‚awek J

require using command (when install java manual):

sudo update-alternatives --config java
sudo update-alternatives --config javac


My installation required a single hyphen for the java options for the verification step

$ java -version