Now it is possible to install openjdk-11 this way:

sudo apt-get install openjdk-11-jdk

(Previously it installed openjdk-10, but not anymore)

Answer from user5479362 on Stack Overflow
๐ŸŒ
Ubuntu
ubuntu.com โ€บ tutorials โ€บ install-jre
Install the Java Runtime Environment | Ubuntu
An Oracle account is needed to download the Oracle HotSpot JRE. Oracle does not currently offer JRE packages for Java 11 or above from their website so, for this tutorial, we will use the Oracle HotSpot JRE version to be 8u291 (Java 8, update 291).
Discussions

What is the point of all these new Java versions when Java 8 is all that seems to be supported by most apps?
Because they switched to a new release model which allows for them to get new features out faster. Same thing happened when Firefox and chrome switched to a timed release model. People bitched about version numbers but slowly got use to the fact that "I don't really care that this is firefox 82". From an organization standpoint, this has been great for the Java getting features out. It used to be that they'd say "Ok, we are going to target key feature X for java Y". The problem with that is nearly all project development got devoted to that feature and ultimately "when" java would go out was completely unknown. Further, releases where crazy times for JDK developers. With the new model, they've been able to work on a lot more features in parallel. A ton of usability features made it in (records, pattern matching, string literals) which never would have made it in the old model. Further, it's allowed them to slowly walk in huge features (Valhalla, loom, etc) making pre-emptive changes needed to support massive changes in the future. Post Java 9, the upgrades have been a breeze. Honestly, I almost wish they'd move to an even faster release model to really force people to stop caring so much about these version numbers. Rust does a release every 6 weeks and I think that works great. Nobody cares that it's now Rust 1.50 or whatever. More on reddit.com
๐ŸŒ r/java
45
0
April 19, 2021
Java for UniFI Controller
Windows or Linux system for the controller? More on reddit.com
๐ŸŒ r/Ubiquiti
10
4
July 12, 2019
๐ŸŒ
SysAdminXpert
sysadminxpert.com โ€บ home โ€บ java โ€บ how to upgrade java 8 to java 11 on ubuntu 20
How To Upgrade Java 8 To Java 11 On Ubuntu 20 | SysAdminXpert
January 3, 2024 - This article will show you how to upgrade Java 8 to Java 11 on Ubuntu 20.04. Java is one of the most popular programming languages in the world, used for building a wide range of applications from desktops to mobile and web applications. Java 11, also known as Java SE 11, is a long-term support (LTS) version of the Java programming language, and it provides several new features and enhancements over its predecessor, Java 8.
๐ŸŒ
W3Schools Blog
w3schools.blog โ€บ home โ€บ upgrade java 8 to 11 in ubuntu
Upgrade java 8 to 11 in ubuntu - W3schools.blog
January 27, 2022 - sudo apt-get install openjdk-11-jdk $ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status * 0 /usr/lib/jvm/java-9-openjdk-amd64/bin/java 1500 auto mode 1 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java ...
๐ŸŒ
Programshelp
programshelp.com โ€บ help โ€บ java โ€บ how_to_upgrade_java_8_to_11_in_ubuntu.html
How to upgrade java 8 to 11 in ubuntu
sudo apt-get install openjdk-11-jdk $ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status * 0 /usr/lib/jvm/java-9-openjdk-amd64/bin/java 1500 auto mode 1 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java ...
๐ŸŒ
Ingrom
ingrom.com โ€บ java โ€บ 1518860 โ€บ upgrade-java-8-to-11-in-ubuntu
upgrade java 8 to 11 in ubuntu Java code / Ingrom
upgrade to java 11 from 8 Java ยท install openjdk 11 ubuntu from tar Java ยท install sun jdk 11 ubuntu Java ยท download java 11 in ubuntu Java ยท apt-get install jdk-11 did not set JAVA_HOME Java ยท apt-get install jdk-11 Java ยท ubuntu openjdk11 devel Java ยท
Find elsewhere
๐ŸŒ
LinuxBabe
linuxbabe.com โ€บ home โ€บ how to install oracle java 8 and openjdk 11 on ubuntu 22.04, 20.04
How To Install Oracle Java 8 and OpenJDK 11 on Ubuntu 18.04, 19.04
October 27, 2022 - sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_221/bin/java 1 sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_221/bin/javac 1 ยท To set a default JDK on Ubuntu 22.04/20.04, run the following command: ... The available options will be listed. Type a number to select a default JDK. JDK 11 has significant stability, functionality and performance improvements compared to JDK 8, so you might want to choose JDK 11.
๐ŸŒ
TecAdmin
tecadmin.net โ€บ install-openjdk-java-ubuntu
How to Install OpenJDK JAVA 11/8 in Ubuntu and Debian
April 26, 2025 - Install JAVA (OpenJDK) on Ubuntu Systems. This Article will help you to Install JAVA on Ubuntu System in easy steps. Installing OpenJDK on Ubuntu.
๐ŸŒ
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 - By default, Ubuntu includes OpenJDK 11, which is an open-source variant of the JRE and JDK. To install the OpenJDK version of Java, first update your apt package index: ... OutputCommand 'java' not found, but can be installed with: sudo apt install default-jre # version 2:1.11-72build1, or sudo apt install openjdk-11-jre-headless # version 11.0.14+9-0ubuntu2 sudo apt install openjdk-17-jre-headless # version 17.0.2+8-1 sudo apt install openjdk-18-jre-headless # version 18~36ea-1 sudo apt install openjdk-8-jre-headless # version 8u312-b07-0ubuntu1
๐ŸŒ
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 - OutputCommand 'java' not found, but can be installed with: sudo apt install default-jre # version 2:1.17-75, or sudo apt install openjdk-17-jre-headless # version 17.0.17+10-1~24.04 sudo apt install openjdk-21-jre-headless # version 21.0.9+10-1~24.04 sudo apt install openjdk-11-jre-headless # version 11.0.29+7-1ubuntu1~24.04 sudo apt install openjdk-25-jre-headless # version 25.0.1+8-1~24.04 sudo apt install openjdk-8-jre-headless # version 8u472-ga-1~24.04 sudo apt install openjdk-19-jre-headless # version 19.0.2+7-4 sudo apt install openjdk-20-jre-headless # version 20.0.2+9-1 sudo apt install openjdk-22-jre-headless # version 22~22ea-1
๐ŸŒ
Medium
ktsravindu.medium.com โ€บ installing-java-8-and-11-on-the-same-ubuntu-20-04-4d5aaf10a3a4
Installing Java 8 and Java 11 on the same Ubuntu 20.04 | by Shehan Ravindu | Medium
January 4, 2022 - Installing Java 8 and Java 11 on the same Ubuntu 20.04 We all know most of the developers use different Java versions. Sometimes they have to shift to various versions to run, build and test the โ€ฆ
๐ŸŒ
OneUptime
oneuptime.com โ€บ home โ€บ blog โ€บ how to install and switch java versions on ubuntu
How to Install and Switch Java Versions on Ubuntu
March 2, 2026 - Ubuntu's repositories include OpenJDK ... LTS available) sudo apt install default-jdk # Install a specific version sudo apt install openjdk-8-jdk # Java 8 sudo apt install openjdk-11-jdk # Java 11 (LTS) sudo apt install openjdk-17-jdk ...
๐ŸŒ
DZone
dzone.com โ€บ coding โ€บ frameworks โ€บ installing openjdk 11 on ubuntu 18.04
Installing OpenJDK 11 on Ubuntu 18.04
October 1, 2018 - Once OpenJDK 11 appears in Ubuntu 18.04, it's just going to be a matter of a package upgrade and which alternative switches to use. % sudo apt-get install --only-upgrade default-jdk % update-alternatives --config java There are 2 choices for ...
๐ŸŒ
PhoenixNAP
phoenixnap.com โ€บ home โ€บ kb โ€บ sysadmin โ€บ how to install java on ubuntu
How to Install Java on Ubuntu
February 20, 2025 - The upside of installing from a third-party repository is there is no need to upgrade the packages manually since it is done automatically during system upgrades. However, the downside is there is no way to know when the Personal Package Archive (PPA) maintainer will abandon it. Note: The PPA method for installing Oracle Java was used in older versions of Ubuntu but has become less reliable and is not recommended as of Ubuntu 22.04 and onwards. The sections below provide instructions for installing JDK from a third-party repository or by downloading and installing a .deb file.
๐ŸŒ
InfoWorld
infoworld.com โ€บ home โ€บ software development โ€บ programming languages โ€บ java
Installing Oracle Java SE 11 on Ubuntu 18.04 | InfoWorld
January 21, 2020 - The first thing you need to do is update the system, using the following command: sudo apt update && sudo apt upgrade ยท Next, make sure the checksum of the binary matches: cd Downloads/ sha256sum jdk-11.0.5_linux-x64* Now create a folder and ...
๐ŸŒ
LinuxVox
linuxvox.com โ€บ blog โ€บ ubuntu-upgrade-java
Ubuntu Upgrade Java: A Comprehensive Guide | LinuxVox.com
June 10, 2025 - Install a Newer Java Version If ... example, to install OpenJDK 17: ... Download the Java Archive Visit the Oracle Java download page and download the appropriate Java SE Development Kit (JDK) for your system....
๐ŸŒ
Ask Ubuntu
askubuntu.com โ€บ questions โ€บ 1225270 โ€บ how-do-i-update-java-11-to-java-13
How do i update Java 11 to Java 13? - Ask Ubuntu
April 8, 2020 - You need to uninstall java 11 and install the other one. If you do not uninstall java 11 then you need to change the java default configuration after you install the other version ( with sudo update-alternatives --config java) and change your ...