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 Top answer 1 of 12
529
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)
2 of 12
125
To install Openjdk 11 in Ubuntu, the following commands worked well.
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt install openjdk-11-jdk
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 ...
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
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
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
How to install jdk?
sudo apt install openjdk-8-jdkMore on reddit.com
Videos
03:19
Install Java / OpenJDK on Linux and Add it to Path - YouTube
00:53
How to Install Java JDK 11 on AWS EC2 Linux 2 Using Yum | No package ...
11:22
How to Install OpenJDK 11 and OpenJDK 8 on Ubuntu 20 04 LTS| How ...
07:39
Oracle JDK 11 RPM Installation on Redhat Enterprise Linux 7.5 without ...
04:34
THE STEPS TO CORRECTLY INSTALL OpenJDK11 - YouTube
01:58
Installing Java 11 on your Linux Ubuntu system using OpenJDK -- ...
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
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.
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!
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:
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.
Reddit
reddit.com › r/linuxadmin › how do you manually install java openjdk?
r/linuxadmin on Reddit: How do you manually install java openjdk?
November 6, 2024 -
So my current openjdk version is 11.0.23 and i needed to update it to 11.0.24.
I downloaded the package and extracted it on the system.
Then the extracted files has some bunch of folders and stuff.
How do you actually install this to the system? im using centos 7
Thanks in advance.
Top answer 1 of 5
10
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, ...).
2 of 5
3
You don't. Upgrade to a supported OS. And then use sdkman to install java 11.
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 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