Install Oracle Java 15 via PPA in Ubuntu 20.04, 18.04, 16.04

Last updated: September 17, 2020

Oracle Java 15 was released a few days ago. The installer script has been made into PPA for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04, and their derivatives.

See the release note for what’s new in Oracle Java 15.

The “Linux Uprising” team ppa has made the installer script, which automatically downloads and installs Oracle JDK 15 package, and sets Java 15 as the default Java version (setting JAVA_HOME, etc.) on 64-bit Ubuntu based system.

1.) Open terminal and run command to add the PPA:

sudo add-apt-repository ppa:linuxuprising/java

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2.) After adding PPA, refresh system package cache and install the script:

sudo apt update

sudo apt install oracle-java15-installer

Once the package is installed, you have to accept the license (press Tab to highlight) before starting the download process.

And after installed Oracle Java 15, check via java --version command:

(Optional) To uninstall the PPA repository, run command in terminal:

sudo add-apt-repository --remove ppa:linuxuprising/java

And remove Oracle Java 15 if you want by running command:

sudo apt-get remove oracle-java15-installer

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

5 responses to Install Oracle Java 15 via PPA in Ubuntu 20.04, 18.04, 16.04

  1. Hey Champion,

    Awesome job on the guide. It was seriously easy to follow and your English is perfect.

    Thank you very much.

  2. Thank you so much! It was very helpful =)

  3. Excellent and easy instructions. Thanks.

  4. Great instruction! I tried to use dpkg to install the .bin package. it didn’t work. Following yours it works right the first time. Thanks!

  5. Obsolete. About Oracle Java 10, 12, 13, 14, 15 and 16: These versions have reached the end of public updates, therefore they are longer available for download. The Oracle Java 10/12/13/14/15 packages in this PPA no longer worked due to this, so I have removed them. Switch to Oracle Java 17 or OpenJDK 17 instead, which is long term support.