To install OpenJDK 11 in Ubuntu, use the commands listed below.
- Add the repository
sudo add-apt-repository ppa:openjdk-r/ppa
- Update package list
sudo apt-get update
- Install
openjdk-11-jdk
sudo apt install openjdk-11-jdk
Answer from Tejas Lotlikar on askubuntu.com Top answer 1 of 2
15
To install OpenJDK 11 in Ubuntu, use the commands listed below.
- Add the repository
sudo add-apt-repository ppa:openjdk-r/ppa
- Update package list
sudo apt-get update
- Install
openjdk-11-jdk
sudo apt install openjdk-11-jdk
2 of 2
2
I had this error while building a Dockerfile. The solution was to install default-jre instead:
sudo apt-get install -y default-jre
Stack Overflow
stackoverflow.com › questions › 57960603 › e-unable-to-locate-package-openjdk-11-jdk
maven - E: Unable to locate package openjdk-11-jdk - Stack Overflow
FROM maven:3-jdk-11 # Common files and utils for build RUN apt-get update && apt-get install -y make fakeroot rpm dpkg-dev apt-utils wget unzip RUN apt-get install -y -q software-properties-common desktop-file-utils # Then Wine with all deps RUN dpkg --add-architecture i386 && apt-get update RUN apt-get install -y --install-recommends wine RUN apt-cache search openjdk RUN apt-get install -y openjdk-11-jdk RUN apt install -y openjfx11 libopenjfx-java libopenjfx-jni RUN apt-get install -y --install-recommends wine32 ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64 ENV JAVAFX_HOME /usr/share/java/openjfx11 # And we ready to play with our code ARG SRCDIR=. ARG DSTDIR=/usr/src/CryptoStock ARG CACHEDIR=./cache # Subject to be used here but should be command line, sic!
Package 'openjdk-11-jre' has no installation candidate
Hello Everyone, I am using airflow through docker container, deployed on AWS fargate as a service which has been working completely fine for a long time but suddenly today I'm unable to deploy ... More on github.com
Unable to locate package openjdk-11-jre-headless 7.17 ubuntu-2004-aarch64
Exit-code 17 when calling ... 2/3] RUN apt-get update -qqy #5 CACHED #6 [geoip-fixture 3/3] RUN apt-get install -qqy openjdk-11-jre-headless #6 3.269 E: Unable to locate package openjdk-11-jre-headless #6 ERROR: process "/bin/sh -c apt-get install -qqy openjdk-11-jre... More on github.com
OpenJDK11 on Debian 9
I'm building a virtual machine with debian 9 to use like VPS. I'm trying to install openJDK11 but i can't find the package and a good tutorial to install it and run apps compiled with openJDK 11. Has anyone managed to install openjdk11 on a debian machine? If so, please explain how you did it Thanks More on b4x.com
Install of openjDK 8 failing on Xenial builds
Hi community ! Since today we are having issues during builds on xenial environment. Our TravisCI configuration has not changed since a while. We use the openJDK 8 but the installation does not work as expected: Installing openjdk8 OK E: Unable to locate package temurin-8-jdk $ export ... More on travis-ci.community
Reddit
reddit.com › r/debian › problem installing openjdk-11-jdk
r/debian on Reddit: Problem installing openjdk-11-jdk
September 6, 2023 -
I am trying to install Ghidra on a newly spun up Debian machine. When I run sudo apt-get install -y openjdk-11-jdk it fails with E: Unable to locate package openjdk-11-jdk. When I run java -version, it says I am running version 16.0.1. How do i revert to the openjkd-11? Or is something else going on that's wrong?
Top answer 1 of 4
4
What Debian version? Bookworm ships openjdk-17-jdk. 11 was in buster. As to why you're running a v16 JRE, no idea, you likely have some JRE in the path or installed some weird package from outside the Debian repositories. Running which java should at least give you a hint.
2 of 4
2
Have you tried using SDKMAN instead of the apt package. This is a pretty common approach to SDK/JDK management these days. Although, you'd have to check if 11 is still supported by the installer.
Ralph's Open Source Blog
ralph.blog.imixs.com › 2024 › 01 › 24 › install-open-jdk-11-on-debian-12-bookworm
Install Open JDK 11 on Debian 12 (Bookworm) - Ralph's Open Source Blog
January 24, 2024 - In Debian 12 the default JDK is Java 17. In case you need Java 11 instead you can follow this blog from Linux Shout . Here is the short version: 1) Edit your sources.list Edit the file /etc/apt/sources.list and add the unstable packages at the end of the file deb…
AccuWeb Hosting
manage.accuwebhosting.com › knowledgebase › 3375 › How-to-Install-OpenJDK-JAVA-11or8-on-Ubuntu.html
How to Install OpenJDK JAVA 11/8 on Ubuntu? - AccuWebHosting
You have now successfully installed OpenJDK Java 11 on your Ubuntu system. This setup includes the JRE and JDK, enabling you to run and develop Java applications. Don’t forget to configure the JAVA_HOME variable for consistent environment use across applications. You can follow similar steps to install OpenJDK 8 by replacing the package names accordingly. ... Apache is one of the internet's most favoured web servers, serving over half of all active... Locations ...
GitHub
github.com › apache › airflow › discussions › 31938
Package 'openjdk-11-jre' has no installation candidate · apache/airflow · Discussion #31938
BTW. you crucially omitted the openjdk-11 from your Dockerfile but in the output it is clearly visible that you are trying to install it, so maybe you posted a wrong Dockerfile. Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... @potiuk Thanks for pointing out! there was another docker file in the repo that contained the openjdk-11,,, i will update it to download version 17 instead!
Author apache
GitHub
github.com › elastic › elasticsearch › issues › 107613
Unable to locate package openjdk-11-jre-headless 7.17 ubuntu-2004-aarch64 · Issue #107613 · elastic/elasticsearch
April 18, 2024 - Exit-code 17 when calling ... 2/3] RUN apt-get update -qqy #5 CACHED #6 [geoip-fixture 3/3] RUN apt-get install -qqy openjdk-11-jre-headless #6 3.269 E: Unable to locate package openjdk-11-jre-headless #6 ERROR: process "/bin/sh -c apt-get install -qqy openjdk-11-jre...
Author elastic
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 - The version of Oracle’s JDK you’ll need to download must match the version of the installer script. To find out which version you need, visit the oracle-java11-installer page. Locate the package for Jammy, as shown in the following figure: In this image, the version of the script is 11.0.13.
B4X
b4x.com › home › forums › b4j - desktop, server and raspberry pi › b4j questions
OpenJDK11 on Debian 9 | B4X Programming Forum
February 15, 2019 - You can manually download OpenJDK 11 binary files here: http://jdk.java.net/11/ Tools I have made with B4J: BasicCAT - A computer-aided translation tool ImageTrans - An image translation and transcription tool Silhouette - A computer-aided translation tool for audios and videos Online Image Translator - Based on ImageTrans and jServer ... I downloaded and extracted it with command "tar xvf openjdk-11.0.2_linux-x64_bin.tar.gz" in folder: /opt/java. I set the environment variable JAVA_HOME with the location of java folder and i've added it to PATH variable.
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
The debuginfo-install is provided by the yum-utils package. To verify that the debug symbols are installed, enter the following command: $ gdb which java Reading symbols from /usr/bin/java...Reading symbols from /usr/lib/debug/usr/lib/jvm/java-11-openjdk-11.0.14.0.9-2.el8_5/bin/java-11-openjdk-11.0.14.0.9-2.el8_5.x86_64.debug...done. (gdb) This procedure explains how to find the location of debug symbols.
Raspberry Pi Forums
forums.raspberrypi.com › board index › using the raspberry pi › beginners
Am I correct in understanding I cannot install a JDK on a Pi 1B+? - Raspberry Pi Forums
dpkg: error processing package openjdk-11-jdk-headless:armhf (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of default-jre: default-jre depends on openjdk-11-jre; however: Package openjdk-11-jre:armhf is not configured yet.
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-java-with-apt-on-debian-11
How To Install Java with Apt on Debian 11 | DigitalOcean
September 1, 2022 - Oracle JDK comes with the JRE included, so you don’t need to install that separately. The version of Oracle’s JDK you need to download must match the version of the installer script. To find what version you need, visit the oracle-java11-installer page. The location of your package is in ...
STMicroelectronics Community
community.st.com › t5 › stm32-mcus-products › trying-to-find-an-open-version-of-java-that-will-work-with › td-p › 342158
Trying to find an open version of Java that will w...
ST is a global high-tech company creating semiconductor technologies for a smarter, greener, and more sustainable future
JetPatch
kc.jetpatch.com › hc › en-us › articles › 20698538476173-Transitioning-from-Java-8-to-Java-11-for-JetPatch
Transitioning from Java 8 to Java 11 for JetPatch – JetPatch
This command displays the default Java version and lists all installed versions (it should show the relevant java package) You can verify whether you are using OracleJDK or OpenJDK, along with its version, by executing this command as well: java_version=$(java -version 2>&1) && if echo "$java_version" | grep -qi "openjdk"; then echo "OpenJDK $(echo "$java_version" | awk -F '"' '/version/ {print $2}' | sed 's/^1\.8\.0/8/')"; else echo "Oracle JDK $(echo "$java_version" | awk -F '"' '/version/ {print $2}' | sed 's/^1\.8\.0/8/')"; fi
GitHub
github.com › termux-user-repository › tur › issues › 957
[Package]: add openjdk-11 · Issue #957 · termux-user-repository/tur
April 24, 2024 - Name openjdk-11 Home page URL No response Source code URL https://github.com/openjdk/jdk/tree/jdk-11+28 Packaging policy acknowledgement I understand Tur Package Policy. Additional information Please add openjdk-11 as termux official r...
Author termux-user-repository
Top answer 1 of 5
1
All openjdk builds are deprecated see:
Retiring OpenJDK Project Builds for JDK 11 and JDK 8
opened 02:36PM - 09 Jun 22 UTC (UTC)
closed 11:22PM - 01 Jul 22 UTC (UTC)
[jerboaa]
…
2 of 5
0
Can you share why you think apt-get should exist in the base image?
Furthermore, can you share how you identified that the base image actually is based on debian/ubuntu?
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 · Run the following command to install the default JDK: