The steps in this section will install the Java 11 JDK on Ubuntu.

Install software-properties-common to easily add new repositories:

sudo apt-get install software-properties-common

Add the Java PPA:

sudo add-apt-repository ppa:linuxuprising/java

Update the source list:

sudo apt-get update
sudo apt install oracle-java11-set-default

Install the Java JDK 11:

sudo apt-get install oracle-java11-installer-local

If you enjoy our content, please consider buying us a coffee to support our work:

Table of Contents
Great! Next, complete checkout for full access to GeekBits.
Welcome back! You've successfully signed in.
You've successfully subscribed to GeekBits.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info has been updated.
Your billing was not updated.