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
Awesome job on the guide. It was seriously easy to follow and your English is perfect.
Thank you very much.
Thank you so much! It was very helpful =)
Excellent and easy instructions. Thanks.
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!
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.