Yes, you can get Java 15 from AdoptOpenJDK PPA.

wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/

Then you can install Java 15 with:

sudo apt-get install adoptopenjdk-15-hotspot

For more information / options / troubleshooting : https://adoptopenjdk.net/index.html

Answer from Flow on askubuntu.com
🌐
Techoral
techoral.com › blog › java › install-openjdk-15-ubuntu.html
Open Jdk - How To Install OpenJDK Java 15 On Ubuntu 18.04 / ubuntu 20
March 22, 2025 - Install OpenJDK Java 15 on Ubuntu: download & set up OpenJDK 15. Quick guide for Ubuntu users to install Java 15, essential for development & compatibility
🌐
Tutorials24x7
java.tutorials24x7.com › blog › how-to-install-java-15-on-ubuntu-20-04-lts
How To Install Java 15 On Ubuntu 20.04 LTS | Tutorials24x7
November 19, 2020 - This tutorial provides all the steps required to install Java 15 on the popular Linux distribution i.e. Ubuntu. It provides all the steps for Ubuntu 20.04 LTS (Focal Fossa).
🌐
Linux Uprising
linuxuprising.com › 2020 › 09 › how-to-install-oracle-java-15-on-ubuntu.html
How To Install Oracle Java 15 On Ubuntu, Debian Or Linux Mint Using APT PPA Repository - Linux Uprising Blog
April 14, 2021 - sudo add-apt-repository ... available by default) users: open a terminal and run the following commands to add the Linux Uprising Oracle Java PPA repository, and install Oracle JDK 15:...
🌐
OneUptime
oneuptime.com › home › blog › how to install java (openjdk) on ubuntu
How to Install Java (OpenJDK) on Ubuntu
January 15, 2026 - # Update package lists sudo apt update # Install the default JDK (includes JRE) sudo apt install default-jdk -y # Verify installation java -version javac -version ... # Install OpenJDK 21 (LTS, released September 2023) sudo apt install ...
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-java-with-apt-on-ubuntu-22-04
How to Install Java with Apt on Ubuntu (JRE & JDK) | DigitalOcean
February 2, 2026 - Learn how to install Java (JRE & JDK) on Ubuntu using apt. Step-by-step guide to setting up Java, verifying installation, and managing multiple versions.
🌐
DEV Community
dev.to › adibmed › installing-openjdk-15-on-ubuntu-20-04-451i
✨Installing OpenJDK 15 on Ubuntu 20.04✨ - DEV Community
November 6, 2020 - PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk-15.0.1/bin" JAVA_HOME="/usr/lib/jvm/jdk-15.0.1" Save the file and exit. 🌟 Step 6 Run the following commands to inform the system about the java's location. sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/java/jdk-15.0.1/bin/java" 0
Find elsewhere
🌐
Ubuntu
ubuntu.com › tutorials › install-jre
Install the Java Runtime Environment | Ubuntu
In this guide, we’ll be going through the installation of both JRE packages. Of course, you generally only need to pick the one that best suits your needs and preferences. ... That’s all you need. If you have that, let’s proceed to the next step! With new versions of Java released every 6 months, there are multiple versions available for use.
🌐
Linux Hint
linuxhint.com › install-java-jdkjre-ubuntu
Install Latest Java OpenJDK/JRE 11/13/14/15 on Ubuntu – Linux Hint
But it is not the part of Ubuntu 20.04 base repository. To install OpenJDK 15, download its Debian package from the Oracle official website (https://www.oracle.com/java/technologies/javase-jdk15-downloads.html).
🌐
RoseHosting
rosehosting.com › home › how to install java on ubuntu 20.04
How to Install Java on Ubuntu 20.04 | RoseHosting
June 3, 2022 - First, install the required dependencies with the following command: apt-get install gnupg2 software-properties-common -y · Once all the dependencies are installed, add the Java repository with the following command: ... java version "15.0.1" ...
🌐
Oracle
docs.oracle.com › en › java › javase › 15 › install › installation-jdk-linux-platforms.html
3 Installation of the JDK on Linux Platforms - Java
$ rpm -Uvh jdk-15.interim.update.patch_linux-x64_bin.rpm ... Delete the .rpm file if you want to save disk space. Exit the root shell. It is not required to reboot. The JDK installation is integrated with the alternatives framework. After installation, the alternatives framework is updated to reflect the binaries from the recently installed JDK. Java commands such as java, javac, javadoc, and javap can be called from the command line.
🌐
TheServerSide
theserverside.com › blog › Coffee-Talk-Java-News-Stories-and-Opinions › How-do-I-install-Java-on-Ubuntu
How to install Java 21 on Ubuntu
While Ubuntu does not come with Java’s JDK preinstalled, it does come prepackaged with the ability to easily install Java with the apt command.
🌐
UbuntuHandbook
ubuntuhandbook.org › home › howtos › install oracle java 15 via ppa in ubuntu 20.04, 18.04, 16.04
Install Oracle Java 15 via PPA in Ubuntu 20.04, 18.04, 16.04 | UbuntuHandbook
September 17, 2020 - 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.
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-java-with-apt-on-ubuntu-20-04
How To Install Java with Apt on Ubuntu | DigitalOcean
February 5, 2026 - Install Java on Ubuntu using apt. Learn how to install OpenJDK and Oracle JDK, manage versions, and configure JAVA_HOME.
🌐
Mkyong
mkyong.com › home › java › how to install java jdk on ubuntu
How to install Java JDK on Ubuntu - Mkyong.com
March 29, 2021 - The below result shows 5 JDK installed on this Ubuntu; choose option 2 for the above extracted JDK 16 /opt/jdk-16/bin/java. ... $ sudo update-alternatives --config java There are 4 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode 1 /opt/jdk-15...
🌐
MakeUseOf
makeuseof.com › home › linux › how to install java on ubuntu and remove it when you’re done
How to Install Java on Ubuntu and Remove It When You’re Done
February 23, 2023 - Need to install Java on your Ubuntu system? Whether you're coding in Java or using an app, here's how to get it running.
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install java on ubuntu
How to Install Java on Ubuntu
February 20, 2025 - This step-by-step guide will show you how to install Java on Ubuntu.
🌐
Hostinger
hostinger.com › home › tutorials › how to install java on ubuntu
How to Install Java on Ubuntu
January 13, 2026 - Check this article to learn how to install Java on Ubuntu: 1. Update the package index 2. Install JRE 3. Install a specific Java version and more.
🌐
Cherry Servers
cherryservers.com › home › blog › linux › how to install java on ubuntu 22.04 | step-by-step tutorial chatbots
How to Install Java on Ubuntu 22.04 | Step-by-Step Tutorial chatbots | Cherry Servers
November 7, 2025 - In this step-by-step Java tutorial, you will learn how to install Java on Ubuntu 22.04 server in multiple ways, including how to configure the default Java version on Ubuntu, and configure JAVA_HOME Environment Variable.