- How To Install openjdk-8-jre-headless on Ubuntu 20.04
- Introduction
- What is openjdk-8-jre-headless
- Install openjdk-8-jre-headless Using apt-get
- Install openjdk-8-jre-headless Using apt
- Install openjdk-8-jre-headless Using aptitude
- How To Uninstall openjdk-8-jre-headless on Ubuntu 20.04
- Uninstall openjdk-8-jre-headless And Its Dependencies
- Remove openjdk-8-jre-headless Configurations and Data
- Remove openjdk-8-jre-headless configuration, data, and all of its dependencies
- References
- Summary
- How to download and install prebuilt OpenJDK packages
- JDK 8
- Debian, Ubuntu, etc.
- Fedora, Oracle Linux, Red Hat Enterprise Linux, etc.
- JDK 7
- Debian, Ubuntu, etc.
- Fedora, Oracle Linux, Red Hat Enterprise Linux, etc.
- JDK 6
- Debian, Ubuntu, etc.
- Fedora, Oracle Linux, Red Hat Enterprise Linux, etc.
- BSD Port
- Пакет: openjdk-8-jre (8u372-ga~us1-0ubuntu1~20.04) [universe]
- Original Maintainers (usually from Debian):
- Внешние ресурсы:
- Подобные пакеты:
- OpenJDK Java runtime, using Hotspot JIT
- Другие пакеты, относящиеся к openjdk-8-jre
- Загрузка openjdk-8-jre
- How to install the OpenJDK 8 (Ubuntu 19.04)?
- 5 Answers 5
How To Install openjdk-8-jre-headless on Ubuntu 20.04
In this tutorial we learn how to install openjdk-8-jre-headless on Ubuntu 20.04. openjdk-8-jre-headless is OpenJDK Java runtime, using Hotspot JIT (headless) 20eb08d56f9496cba7ae5bc1fc762f93 OpenJDK Java runtime, using Hotspot JIT (headless) 20eb08d56f9496cba7ae5bc1fc762f93
Introduction
In this tutorial we learn how to install openjdk-8-jre-headless on Ubuntu 20.04.
What is openjdk-8-jre-headless
Minimal Java runtime — needed for executing non GUI Java programs, using Hotspot JIT.
The packages are built using the IcedTea build support and patches from the IcedTea project. Description-md5: 20eb08d56f9496cba7ae5bc1fc762f93
Package: openjdk-8-jre-headless Architecture: amd64 Version: 8u252-b09-1ubuntu1 Multi-Arch: same Priority: optional Section: universe/java Source: openjdk-8 Origin: Ubuntu Maintainer: OpenJDK Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 98326 Provides: java2-runtime-headless, java5-runtime-headless, java6-runtime-headless, java7-runtime-headless, java8-runtime-headless Depends: ca-certificates-java, java-common (>= 0.28), libcups2, liblcms2-2 (>= 2.2+git20110628), libjpeg8 (>= 8c), libfontconfig1, libnss3 (>= 2:3.17.1), util-linux (>= 2.26.2-4), libc6 (>= 2.29), libfreetype6 (>= 2.3.5), libgcc-s1 (>= 3.0), libpcsclite1 (>= 1.3.0), libstdc++6 (>= 4.1.1), libx11-6, libxext6, libxi6, libxrender1, libxtst6, zlib1g (>= 1:1.1.4) Suggests: libnss-mdns, fonts-dejavu-extra, fonts-ipafont-gothic, fonts-ipafont-mincho, fonts-wqy-microhei, fonts-wqy-zenhei, fonts-indic Breaks: ca-certificates-java (« 20160321~), oracle-java8-installer (« 8u77+8u77arm-1), tzdata-java Filename: pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u252-b09-1ubuntu1_amd64.deb Size: 27512060 MD5sum: 569a2a3e86d744eeda25c59c59add5bc SHA1: 3e9a2605ba6c6304f46a47b357b9e4aafdf9cb78 SHA256: dd0217c5457d92f54c3e650cd1cce8c7b782ddebd1e7b7f83193722c2b78513f Homepage: http://openjdk.java.net/ Description-en: OpenJDK Java runtime, using Hotspot JIT (headless) Minimal Java runtime — needed for executing non GUI Java programs, using Hotspot JIT.
The packages are built using the IcedTea build support and patches from the IcedTea project. Description-md5: 20eb08d56f9496cba7ae5bc1fc762f93
There are three ways to install openjdk-8-jre-headless on Ubuntu 20.04. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.
Install openjdk-8-jre-headless Using apt-get
Update apt database with apt-get using the following command.
After updating apt database, We can install openjdk-8-jre-headless using apt-get by running the following command:
sudo apt-get -y install openjdk-8-jre-headless
Install openjdk-8-jre-headless Using apt
Update apt database with apt using the following command.
After updating apt database, We can install openjdk-8-jre-headless using apt by running the following command:
sudo apt -y install openjdk-8-jre-headless
Install openjdk-8-jre-headless Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
After updating apt database, We can install openjdk-8-jre-headless using aptitude by running the following command:
sudo aptitude -y install openjdk-8-jre-headless
How To Uninstall openjdk-8-jre-headless on Ubuntu 20.04
To uninstall only the openjdk-8-jre-headless package we can use the following command:
sudo apt-get remove openjdk-8-jre-headless
Uninstall openjdk-8-jre-headless And Its Dependencies
To uninstall openjdk-8-jre-headless and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove openjdk-8-jre-headless
Remove openjdk-8-jre-headless Configurations and Data
To remove openjdk-8-jre-headless configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge openjdk-8-jre-headless
Remove openjdk-8-jre-headless configuration, data, and all of its dependencies
We can use the following command to remove openjdk-8-jre-headless configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge openjdk-8-jre-headless
References
Summary
In this tutorial we learn how to install openjdk-8-jre-headless package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.
How to download and install prebuilt OpenJDK packages
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
depending on the archive type.
JDK 8
Debian, Ubuntu, etc.
The openjdk-8-jre package contains just the Java Runtime Environment. If you want to develop Java programs then please install the openjdk-8-jdk package.
Fedora, Oracle Linux, Red Hat Enterprise Linux, etc.
The java-1.8.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.8.0-openjdk-devel package.
JDK 7
Debian, Ubuntu, etc.
The openjdk-7-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-7-jdk package.
Fedora, Oracle Linux, Red Hat Enterprise Linux, etc.
The java-1.7.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.7.0-openjdk-devel package.
JDK 6
Debian, Ubuntu, etc.
The openjdk-6-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-6-jdk package.
Fedora, Oracle Linux, Red Hat Enterprise Linux, etc.
The java-1.6.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.6.0-openjdk-devel package.
BSD Port
For a list of pointers to packages of the BSD Port for DragonFly BSD, FreeBSD, Mac OS X, NetBSD and OpenBSD, please see the BSD porting Project’s wiki page.
Пакет: openjdk-8-jre (8u372-ga~us1-0ubuntu1~20.04) [universe]
Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly.
Original Maintainers (usually from Debian):
It should generally not be necessary for users to contact the original maintainer.
Внешние ресурсы:
Подобные пакеты:
- openjdk-11-jre
- openjdk-16-jre
- openjdk-17-jre
- openjdk-13-jre
- openjdk-18-jre
- openjdk-19-jre
- openjdk-20-jre
- openjdk-21-jre
- openjdk-11-jre-headless
- openjdk-8-jre-headless
- openjdk-16-jre-headless
OpenJDK Java runtime, using Hotspot JIT
Другие пакеты, относящиеся к openjdk-8-jre
- зависимости
- рекомендации
- предложения
- enhances
- dep: libasound2 (>= 1.0.16) shared library for ALSA applications
также виртуальный пакет, предоставляемый liboss4-salsa-asound2 - dep: libatk-wrapper-java-jni (>= 0.33.3-9~) [не i386] ATK implementation for Java using JNI (JNI bindings)
- dep: libc6 (>= 2.11) [s390x] GNU C Library: Shared libraries
также виртуальный пакет, предоставляемый libc6-udeb dep: libc6 (>= 2.14) [amd64] dep: libc6 (>= 2.17) [arm64, ppc64el] dep: libc6 (>= 2.28) [armhf, i386] - dep: libgif7 (>= 5.1) library for GIF images (library)
- dep: libgl1-mesa-glx transitional dummy package или libgl1 Vendor neutral GL dispatch library — legacy GL support
- dep: libglib2.0-0 (>= 2.24) GLib library of C routines
- dep: libgtk2.0-0 (>= 2.14) GTK graphical user interface library — old version
- dep: libjpeg8 (>= 8c) Independent JPEG Group’s JPEG runtime library (dependency package)
- dep: libpng16-16 (>= 1.6.2-1) PNG library — runtime (version 1.6)
- dep: libpulse0 (>= 0.99.1) PulseAudio client libraries
- dep: libx11-6 X11 client-side library
- dep: libxext6 X11 miscellaneous extension library
- dep: libxinerama1 X11 Xinerama extension library
- dep: libxrandr2 X11 RandR extension library
- dep: openjdk-8-jre-headless (= 8u372-ga~us1-0ubuntu1~20.04) OpenJDK Java runtime, using Hotspot JIT (headless)
- rec: fonts-dejavu-extra Vera font family derivate with additional characters (extra variants)
Загрузка openjdk-8-jre
Архитектура | Размер пакета | В установленном виде | Файлы |
---|---|---|---|
amd64 | 68,3 Кб | 280,0 Кб | [список файлов] |
arm64 | 64,3 Кб | 255,0 Кб | [список файлов] |
armhf | 61,6 Кб | 206,0 Кб | [список файлов] |
i386 | 69,9 Кб | 284,0 Кб | [список файлов] |
ppc64el | 71,0 Кб | 419,0 Кб | [список файлов] |
s390x | 65,8 Кб | 275,0 Кб | [список файлов] |
This page is also available in the following languages:
Авторские права © 2023 Canonical Ltd.; См. условия лицензии. Ubuntu это торговый знак компании Canonical Ltd. Об этом сайте.
How to install the OpenJDK 8 (Ubuntu 19.04)?
Only openjdk-11-jdk and newer seem to be available. Is there any way to install the OpenJDK 8? Preferably without adding a PPA.
You may download jdk-8u212-linux-x64.tar.gz (185.98 MB) directly from oracle.com/technetwork/java/javase/downloads/… and install it at /opt/jvm or any where you wish. Please note that this NOT open jdk 8 .
@Marmayogi That wouldn’t enable auto-updates. Preferably a solution would include an auto-update feature.
That is known thing @Andrew. It is up to questioner’s choice. I too installed Oracle JDK 11 on /opt/jvm. Now JDK-12 is out and I just downloaded little while ago and going to install. One advantage is that I can switch between JDK-11 and JDK-12 whenever need arises.
I made it very clear @FliegendeWurst that the download URL is for Oracle JDK-8 and NOT for open jdk 8 .
I was hoping to find a PPA from the fine people over at adoptopenjdk.net — but haven’t been able to find one yet.
5 Answers 5
As of now, 30 April 2019 02:00 UTC, Open JDK 8 and its associated packages have been added back to the normal Ubuntu 19.04 Disco Dingo repositories.
So you can now do the usual
sudo apt install openjdk-8-jdk
without adding any PPAs or downloading .deb packages.
As an aside, I believe the package was removed from 19.04 (while originally being there) because it was (erroneously?) removed from Debian testing (related bug report) and then cleaned up downstream. It has been re-added today by its maintainer Matthias Klose aka doko.
I just tried this on 11 May 2019 11:21 BST but it prints E: Unable to locate package openjdk-8-jdk — it seems to not be available again?
I can see from their website that it’s in disco-updates in universe (packages.ubuntu.com/disco-updates/openjdk-8-jdk). Do you have that enabled in your system? Open «Software & Updates» and on the «Ubuntu Software» tab, enable «. (universe)» and on the «Updates» tab enable «Recommended updates (disco-updates)»
Thanks, it was the «Recommended updates (disco-updates)» in the «Updates» tab that wasn’t enabled — I’m guessing this was because I chose to do a minimal installation rather than full one.
While PPA is the preferred method to install JDK 8 in order to get timely updates and fixes, but if you still want to install without PPA, you can download and install JDK 8 from Ubuntu’s pool of Universe packages.
wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk_8u191-b12-2ubuntu0.18.10.1_amd64.deb wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u191-b12-2ubuntu0.18.10.1_amd64.deb wget http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb
sudo dpkg -i openjdk-8-jre-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb \ openjdk-8-jre_8u191-b12-2ubuntu0.18.10.1_amd64.deb \ openjdk-8-jdk_8u191-b12-2ubuntu0.18.10.1_amd64.deb \ openjdk-8-jdk-headless_8u191-b12-2ubuntu0.18.10.1_amd64.deb
If you want to install using PPA, add openjdk-r ppa and install:
sudo add-apt-repository ppa:openjdk-r/ppa sudo apt update sudo apt install openjdk-8-jdk openjdk-8-jre