Install JDK 11.0.1 (LTS) on Ubuntu 18.04

Update: End of Public Updates for Oracle JDK 8

Java SE 8 is going through the End of Public Updates process for legacy releases. Oracle will continue to provide free public updates and auto updates of Java SE 8, until at least the end of December 2020 for Personal Users, and January 2019 for Commercial Users. Source:

Here is a step by step procedure how to install JDK 11.0.1 (LTS) on Ubuntu 18.04 x64

Download: jdk-11.0.1_linux-x64_bin.tar.gz

update-alternatives: –install needs <link> <name> <path> <priority>

The priority is an important option when you have more than one Java version installed.

Use your favorite text editor.

You might need to reboot your system.

Use the following command to configure Java on your system:

There are 2 choices for the alternative java (providing /usr/bin/java).