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 - 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 ...
Discussions

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
How to install Java?
I think the first command will install the LTS version, which is currently 11. This has always been confusing on Debian distros. Are you just running java? Or are you looking to build new java code? Install the jdk if you want to build, not the jre. More on reddit.com
🌐 r/pop_os
4
5
February 25, 2020
How to install Java 11?
I think you'll have to install manually. Open JDK 11: https://jdk.java.net/archive/ -or- Java SE 11: https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html Take "Linux .tar.gz" files of course. You should remove your old Java installs before. More on reddit.com
🌐 r/voidlinux
4
4
May 25, 2019
How to install jdk?
sudo apt install openjdk-8-jdk
More on reddit.com
🌐 r/Crostini
10
1
December 2, 2018
🌐
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 - Install OpenJDK 11 on Ubuntu 26.04, 24.04 and 22.04. Covers JRE and JDK packages, version switching, JAVA_HOME setup, and removal commands.
🌐
OpenJDK
openjdk.org › install
OpenJDK: Download and install
Oracle's OpenJDK JDK binaries for Windows, macOS, and Linux are available on release-specific pages of jdk.java.net as .tar.gz or .zip archives · As an example, the archives for JDK 13 may be found on jdk.java.net/13 and may be extracted on the command line using
🌐
Linode
linode.com › docs › guides › how-to-install-openjdk-ubuntu-22-04
Installing OpenJDK on Ubuntu 22.04 | Linode Docs
March 20, 2023 - The following command demonstrates ... instruction. ... To install release 11 of OpenJDK, use the command sudo apt-get install openjdk-11-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 # ...
🌐
TecAdmin
tecadmin.net › install-openjdk-java-ubuntu
How to Install OpenJDK JAVA 11/8 in Ubuntu and Debian
April 26, 2025 - Use the below command to install OpenJDK on your Debian based systems using the package manager from the default repository. The below commands will install Java Development Kit (JDK) and Java Runtime Environment (JRE) both on your system.
Find elsewhere
🌐
Red Hat
developers.redhat.com › openjdk-install
Install OpenJDK on Windows and Linux | Red Hat Developer
January 22, 2024 - To install OpenJDK 11 on Red Hat Enterprise Linux 6: Ensure that you are subscribed to the base channel. Install the OpenJDK 11 package, by running the following command: yum install java-11-openjdk-devel Last updated: January 22, 2024
🌐
Linode
linode.com › docs › guides › how-to-install-openjdk-on-ubuntu-18-04
Install OpenJDK 11 (Java Development Kit) on Ubuntu 18.04 | Linode Docs
March 25, 2020 - This guide will show you how to install the Open Java Development Kit (OpenJDK) 11 on Ubuntu 18.04 and test it by through a simple "Hello World" application.
🌐
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.
🌐
Imec
jfed.ilabt.imec.be › java11_on_linux
Java 11 on Linux
sudo apt-get update sudo apt-get install openjdk-11-jdk · WARNING On Ubuntu 18.04, the above procedure will install java 10, not 11!
🌐
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 ...
🌐
javathinking
javathinking.com › blog › jdk-11-install-linux
Installing JDK 11 on Linux: A Comprehensive Guide — javathinking.com
OpenJDK 11 is included in the official AppStream repository. ... sudo yum install epel-release -y sudo yum install java-11-openjdk-devel -y Note: The default CentOS 7 repository does not include java-11-openjdk-devel; enabling EPEL is required.
🌐
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:
🌐
Liquid Web
liquidweb.com › home › help docs › server administration › linux server administration › installing and verifying openjdk 11
How to Install OpenJDK 11 and Configure with Java | Liquid Web
December 15, 2025 - As you can see above, the version we want to install is: java-11-openjdk-devel.x86_64 : OpenJDK Development Environment 11 · To install this version, run the following command.
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_build_of_openjdk › 11 › html-single › installing_and_using_red_hat_build_of_openjdk_11_on_rhel › index
Installing and using Red Hat build of OpenJDK 11 on RHEL | Red Hat build of OpenJDK | 11 | Red Hat Documentation
If the output from the previous command shows that you have a different major version of Red Hat build of OpenJDK checked out on your system, you can enter the following command in your CLI to switch your system to use Red Hat build of OpenJDK 11: ... You can install Red Hat build of OpenJDK Java Runtime Environment (JRE) using an archive.
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_build_of_openjdk › 11 › html › installing_and_using_red_hat_build_of_openjdk_11_on_rhel › installing-openjdk11-on-rhel8
Chapter 2. Installing Red Hat build of OpenJDK 11 on Red Hat Enterprise Linux | Installing and using Red Hat build of OpenJDK 11 on RHEL | Red Hat build of OpenJDK | 11 | Red Hat Documentation
If the output from the previous command shows that you have a different major version of Red Hat build of OpenJDK checked out on your system, you can enter the following command in your CLI to switch your system to use Red Hat build of OpenJDK 11: ... You can install Red Hat build of OpenJDK Java Runtime Environment (JRE) using an archive.
🌐
ComputingForGeeks
computingforgeeks.com › home › install java 21 lts (openjdk) on ubuntu 24.04 / debian 13
Install Java 21 LTS (OpenJDK) on Ubuntu 24.04 / Debian 13 [Guide]
March 21, 2026 - Install Java 21 LTS on Ubuntu 24.04 and Debian 13 from default repos or Adoptium Temurin. Covers JAVA_HOME, update-alternatives, and Oracle JDK.
🌐
ComputingForGeeks
computingforgeeks.com › home › install java 21 lts (openjdk) on rhel 10 / rocky linux 10 / almalinux 10
Install Java 21 LTS (OpenJDK) on Rocky Linux / AlmaLinux
March 24, 2026 - In this guide, I will walk you through two methods to install OpenJDK 21 on RHEL 10-based distributions: using the default AppStream repository and using the Eclipse Temurin (Adoptium) repository. We will also cover setting JAVA_HOME properly, managing multiple Java versions with the alternatives system, and configuring Java for build tools and application servers. Before you begin, make sure you have the following in place: A running installation of RHEL 10, Rocky Linux 10, or AlmaLinux 10