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
🌐
Imec
jfed.ilabt.imec.be › java11_on_linux
Java 11 on Linux
Note: If you install jFed using ... or debian 10 (buster) or higher, open a terminal, and execute the following commands: 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!...
Discussions

Installing Java OpenJDK 11 on Fedora (42)
The Linux PATH variable works very similarly to Windows: https://www.digitalocean.com/community/tutorials/how-to-view-and-update-the-linux-path-environment-variable Besides doesn't dnf still ship Java 11? dnf search java-11 More on reddit.com
🌐 r/linux4noobs
6
0
May 8, 2025
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 Oracle JDK 11? Im just switched to fedora from windows. And im struggling to install Oracle JDK. I tried installing 1. LINUX ARM 64 RPM PACKAGE (This shows me architecture related issue) 2. LINUX x64 RPM PACKAGE ( Image attached )
(assuming this is not a troll post) this looks seriously broken. you did something that removed some VERY core/essential binaries. Nothing will work on that OS, not just installing Oracle Java. You'd need to physically give your computer to an expert in Linux systems to be able to recover... More on reddit.com
🌐 r/Fedora
8
0
August 2, 2021
Forge Server using Ubuntu Help
Java 11.0.7 Minecraft Forge does not work with Java 11. I had this same issue when I tried to set up a Forge server on a new Linux installation last month. You'll need to install Java 8 in order to run Forge. Unless you need Java 11 for something else, I would uninstall it entirely. You didn't specify whether you're using Oracle's Java 11 JRE, or if you're using the OpenJDK implementation; but assuming you're using OpenJDK, you should be able to uninstall OpenJDK11 with this command: sudo apt remove openjdk-11-jre ...and install OpenJDK8 with this one: sudo apt install openjdk-8-jre You don't have to uninstall JRE 11 if you don't want to, though. You can install JRE 8 alongside JRE 11 if you want and run sudo update-alternatives --config java to change the default JRE that your system uses. More on reddit.com
🌐 r/Minecraft
2
1
April 29, 2020
🌐
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
You can install Red Hat build of OpenJDK Java Runtime Environment (JRE) using the system package manager, yum. ... Logged in as a user with root privileges on the system. Registered your local system to your Red Hat Subscription Management account. See the Registering a system using Red Hat ...
🌐
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 - Anyone (not only root users) can install the archive file in any location having write access. ... The Java Development Kit files are installed into /usr/lib/jvm/jdk-<VERSION>-oracle-<ARCH> directory. For example, JDK 11 releases for x64 will be installed in /usr/lib/jvm/jdk-11-oracle-x64 directory.
🌐
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 - 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
🌐
javathinking
javathinking.com › blog › jdk-11-install-linux
Installing JDK 11 on Linux: A Comprehensive Guide — javathinking.com
OpenJDK 11 is available in the default Debian/Ubuntu repositories. ... sudo apt install openjdk-11-jdk -y For runtime-only use (no development tools), install openjdk-11-jre instead.
🌐
Reddit
reddit.com › r/linux4noobs › installing java openjdk 11 on fedora (42)
r/linux4noobs on Reddit: Installing Java OpenJDK 11 on Fedora (42)
May 8, 2025 -

Hello linux4noobs

I downloaded java 11.0.2 tar.gz (I know it is "old" but it's just for my learning purposes) from jdk.java.net/11 and installed it using the "tar" command. The problem is, how do I actually use this java installation?

In windows, I would just add the java /bin directory to the PATH, but I'm unsure how to go about this in Fedora.

I tried to use "update-alternatives --config java" to switch but the 11.0.2 version did not show up as an option. What steps do I need to take to make this the default version in my OS? If it matters, I'm getting into Java programming and that's the reason for installing it.

Find elsewhere
🌐
DevOpsSchool.com
devopsschool.com › blog › complete-guide-of-java-installation-in-linux
Java Installation Guide in Linux & Windows -
$ sudo apt-get update $ sudo apt-get install openjdk-11-jdk -y $ apt install openjdk-11-jdk-headless -y Code language: JavaScript (javascript)
🌐
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 - Download the Oracle JDK 21 .deb package from Oracle’s download page. Visit https://www.oracle.com/java/technologies/downloads/ and copy the link for the Linux x64 Debian package, then download it:
🌐
InfoWorld
infoworld.com › home › software development › programming languages › java
Installing Oracle Java SE 11 on Ubuntu 18.04 | InfoWorld
January 21, 2020 - Run command: sudo add-apt-repository ppa:linuxuprising/java. Next, you’ll install the script that initiates downloading and installing Java 11 on Ubuntu:
🌐
Medium
medium.com › @sreelekshmig27 › install-java-11-on-linux-red-hat-and-how-to-switch-between-different-java-versions-e5100764164f
Install Java 11 on Linux (Red Hat) and How to switch between different Java versions | by Sreelekshmi | Medium
August 11, 2022 - In this article, we will be going through the steps to install Java 11 on Red Hat version on Linux and will also look at how to switch between different versions of Java on the machine.
🌐
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
You can install Red Hat build of OpenJDK Java Runtime Environment (JRE) using the system package manager, yum. ... Logged in as a user with root privileges on the system. Registered your local system to your Red Hat Subscription Management account. See the Registering a system using Red Hat ...
🌐
Ubuntu
ubuntu.com › tutorials › install-jre
Install the Java Runtime Environment | Ubuntu
(Alternatively, you may opt to use a specific Java version, using for example the openjdk-11-jre package; as updates are released for that version of the Java Virtual Machine, that packages will be updated, allowing you to stick to the latest and greatest update of one specific version of the Java language.) ... openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2, mixed mode) (Although the output may change in the future as new Java versions are promoted to LTS status, or the current LTS version receives updates.) And that’s it! In the next step we’ll install Oracle HotSpot JRE.
🌐
Linux Uprising
linuxuprising.com › 2019 › 06 › new-oracle-java-11-installer-for-ubuntu.html
New Oracle Java 11 Installer For Ubuntu, Debian Or Linux Mint (Using Local Oracle Java .tar.gz) - Linux Uprising Blog
October 26, 2021 - sudo mkdir -p /var/cache/oracl... 5. Add the Linux Uprising Java PPA (it works on Ubuntu, Linux Mint, Pop!_OS, elementary OS, and any other Ubuntu based Linux distribution) and install the oracle-java11-installer-local package to set up Oracle Java 11:...
🌐
GitHub
gist.github.com › barbixxxa › 67a286d6e3f1b0c9bdcd05184c383521
java jdk 11 installation · GitHub
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk-11/bin" JAVA_HOME="/usr/lib/jvm/jdk-11" sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-11/bin/java" 0 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-11/bin/javac" 0 sudo update-alternatives --set java /usr/lib/jvm/jdk-11/bin/java sudo update-alternatives --set javac /usr/lib/jvm/jdk-11/bin/javac
🌐
Red Hat
developers.redhat.com › blog › 2018 › 12 › 10 › install-java-rhel8
How to install Java 17 and 21 on Red Hat Enterprise Linux 8 | Red Hat Developer
September 3, 2024 - In this article, you’ll learn how to install and run simple Java applications on Red Hat Enterprise Linux (RHEL) 8, how to switch between two parallel installed major JDK versions via alternatives, and how to select one of the two JDKs on a per-application basis. Four major versions of Java are supported in RHEL 8: Java 21, 17, 11, and Java 8.
🌐
LinuxVox
linuxvox.com › blog › install-java-linux-command-line
Install Java on Linux via Command Line — linuxvox.com
The two most common package managers are: ... # Update the package list sudo apt update # Install OpenJDK 11 sudo apt install openjdk - 11 - jdk # If you want a different version, for example, OpenJDK 8 sudo apt install openjdk - 8 - jdk
🌐
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.
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › beginner questions
How to install JRE 11 or Java 11 - Linux Mint Forums
August 4, 2021 - I believe Mint 20 comes with OpenJDK 11 by default. If it's missing for some reason: For development: sudo apt install openjdk-11-jdk For the runtime: sudo apt install openjdk-11-jre Would it be OK for you to use OpenJDK 11 instead of Oracle's Java 11? The discussion here says that it's no ...