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
🌐
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 - You can install a specific version of Java on your Ubuntu system by using the apt command. For example, to install Java 11, you can run the following command:
Discussions

Trying to install Java now.
If you're trying to play singleplayer modded Minecraft or join servers (not hosting a server), I recommend using a launcher like Prism Launcher . It'll auto-detect your Java version(s) and help manage your mods. You can install different Java versions by installing openjdk--jre where is the Java version, such as 17 or 1.8 (referred to as 8). More on reddit.com
🌐 r/Ubuntu
8
8
August 12, 2024
Why did Java 11 JRE not install with JDK and where is the download for just the Java 11 JRE?
There is no separate JRE anymore, only the JDK which includes all JRE parts (e.g. the java binary). Also, do not use OracleJDK unless you intend to pay them money. OpenJDK is the new default. More on reddit.com
🌐 r/java
18
11
November 5, 2018
Why is the default java package still only version 11
openjdk-18-jre is a package available for 21.10 and 22.04 If you need the official one from ORACLE I think you need to download it directly, as it may not be redistributable. More on reddit.com
🌐 r/Ubuntu
12
0
July 20, 2022
How do you manually install java openjdk?
Did you try follow the instructions? https://openjdk.org/install/ Then you have a folder with all the stuff you need. Now you need to tell your OS how to find the binaries and libraries. For that you need to tell us your OS (Debian, Ubuntu, Arch, Fedora, ...). More on reddit.com
🌐 r/linuxadmin
18
0
November 6, 2024
🌐
LinuxCapable
linuxcapable.com › home › ubuntu › how to install openjdk 11 on ubuntu 26.04, 24.04 and 22.04
How to Install OpenJDK 11 on Ubuntu 26.04, 24.04 and 22.04 - LinuxCapable
April 28, 2026 - The Ubuntu Universe and Multiverse guide explains the repository components in more detail, but OpenJDK 11 only needs Universe. ... Install the full Java 11 JDK on Ubuntu with sudo apt install openjdk-11-jdk -y when you need both the runtime ...
🌐
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
Install the JDK with the following command: sudo apt install default-jre Setting up default-jdk-headless (2:1.21) ... Setting up openjdk-21-jdk:amd64 (21.0.5+11-1ubuntu~24.04.1) ...
🌐
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 - OpenJDK provides all the tools you need to develop Java-based applications and microservices, including the Java compiler, Java Runtime Environment (JRE), and Java class library. Ubuntu repositories provide the OpenJDK package by default, and you can search for its availability as shown. ... At the time of writing, the most recent release is OpenJDK 20. The latest LTS ( Long Term Support ) release is OpenJDK 17 and will be supported until 30 September 2026. To install OpenJDK 11 using the APT package manager, execute the command:
🌐
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
🌐
Linode
linode.com › docs › guides › how-to-install-openjdk-on-ubuntu-20-04
How To Install Java Development Kit 11 on Ubuntu 20.04 | Linode Docs
March 25, 2020 - This guide will show you how to install the free and open-source Open Java Development Kit (OpenJDK) version of the Java Runtime Environment (JRE) on Ubuntu 20.04.
Find elsewhere
🌐
GitHub
gist.github.com › peteristhegreat › 4cc299a10c73a7eeb09594ad453b4b52
Installing Java 11 on ubuntu · GitHub
$ md5 jdk-11* MD5 (jdk-11.0.14_linux-x64_bin (1).tar.gz) = c2037b5f2e2a6ddcfbdfe1489bccfd63 MD5 (jdk-11.0.14_linux-x64_bin.tar.gz) = c2037b5f2e2a6ddcfbdfe1489bccfd63 · After all the things above, you can just use the download link from oracle in your script. Here's my working script. #!/usr/bin/env bash export DEBIAN_FRONTEND=noninteractive # set -x cache_folder=/var/cache/oracle-jdk11-installer-local/ sudo mkdir -p $cache_folder #url='https://download.oracle.com/otn/java/jdk/11.0.4+10/cf1bbcbf431a474eb9fc550051f4ee78/jdk-11.0.14_linux-x64_bin.tar.gz' #url='https://download.oracle.com/otn/jav
🌐
TecAdmin
tecadmin.net › install-oracle-java-11-ubuntu-18-04-bionic
How to Install Oracle Java 11 on Ubuntu 18.04 LTS (Bionic)
April 26, 2025 - You need to add the following PPA to your Ubuntu system. This PPA contains a package oracle-java11-installer having the Java installation script. ... Then install Java 11 using the script provided in this packages.
🌐
IONOS
ionos.com › digital guide › server › configuration › install java on ubuntu
How to install Java on Ubuntu step by step - IONOS
October 31, 2022 - It’s well known that you can install Java on Windows 11 but adding it to a machine running Linux is just as easy. To install Java on Ubuntu all you need is the command sudo apt install default-jre.
🌐
TecMint
tecmint.com › home › linux distros › ubuntu › how to install java on ubuntu 24.04, ubuntu 22.04, and ubuntu 20.04
How to Install Java (OpenJDK) on Ubuntu 24.04
June 4, 2024 - This tutorial will show you how to install Java on Ubuntu 24.04, Ubuntu 22.04, and Ubuntu 20.04 from the Ubuntu repository and the official Oracle package.
🌐
Ubuntu
ubuntu.com › tutorials › install-jre
Install the Java Runtime Environment | Ubuntu
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).
🌐
Linuxize
linuxize.com › home › java › how to install java on ubuntu 22.04
How to Install Java on Ubuntu 22.04 | Linuxize
January 27, 2026 - For example, if your application requires Java 11, install the openjdk-11-jdk package. Once the installation is complete, you can verify it by checking the Java version: ... openjdk version "17.0.14" 2025-01-21 OpenJDK Runtime Environment (build ...
🌐
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 - This tutorial is going to show you how to install Oracle Java 8 and OpenJDK 11 on Ubuntu 22.04/Ubuntu 20.04. Java 11 has been released on September 25, 2018 and it’s the first long term support (LTS) release since Oracle changed release schedule. Java Release Model Previously, Oracle releases a new major version of Java…
🌐
Linuxize
linuxize.com › home › java › how to install java on ubuntu 18.04
How to Install Java on Ubuntu 18.04 | Linuxize
February 24, 2020 - If you have multiple Java installations to change the default version, use the update-alternatives tool as shown below: ... There are 3 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 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode Press <enter> to keep the current choice[*], or type selection number:
🌐
Ruan Bekker's Blog
ruan.dev › blog › 2021 › 07 › 12 › install-java-11-and-maven-on-ubuntu-linux
Install Java 11 and Maven on Ubuntu Linux | Ruan Bekker's Blog
July 12, 2021 - sudo apt update sudo apt install openjdk-11-jdk -y ... $ java -version openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, ...
🌐
Oracle
docs.oracle.com › en › java › javase › 11 › install › installation-jdk-linux-platforms.html
4 Installation of the JDK on Linux Platforms - Java
July 15, 2025 - Access Java SE Downloads page and click Accept License Agreement. Under the Download menu, click the Download link corresponding your requirement. The following table lists the options and instructions for downloading and installing the JDK 11 release on a Linux platform:
🌐
Faun
faun.pub › how-to-install-and-manage-multiple-jdk-versions-on-ubuntu-22-04-3de225c7d8c8
How to Install and Manage Multiple JDK Versions on Ubuntu 22.04 | by Achini Udari Jayasena | FAUN.dev() 🐾
November 1, 2024 - 1. Update the package index: First, ensure that your system’s package index is up-to-date: ... This will install the OpenJDK 11 package, which is the free and open-source version of the JDK.
🌐
OneUptime
oneuptime.com › home › blog › how to install java (openjdk) on ubuntu
How to Install Java (OpenJDK) on Ubuntu
January 15, 2026 - # Install OpenJDK 21 (LTS, released September 2023) sudo apt install openjdk-21-jdk -y # Install OpenJDK 17 (previous LTS) sudo apt install openjdk-17-jdk -y # Install OpenJDK 11 (older LTS, still widely used) sudo apt install openjdk-11-jdk -y # ...