Usually you install the openjdk like this:

sudo apt-get install openjdk-8-jdk

Maybe this is the problem. You can look this up at http://openjdk.java.net/install/index.html. If you do this you might have fixed this problem. But cant imagine why your command give this result.

Answer from Booming on askubuntu.com
🌐
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 ... 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.
Discussions

java - How to install jdk 8 on ubuntu server 18.04? - Stack Overflow
I am trying to install JDK 8 ON Ubuntu server 18.04 LTS, with the following commands: sudo apt install openjdk-8-jre sudo apt install openjdk-8-jdk /usr/lib/jvm folder has: I also set the path in... More on stackoverflow.com
🌐 stackoverflow.com
How to install java 8 JRE & JDK?
I cant seem to find a guide to install both Java 8 JRE & JDK in OpenSuse 42.1. Please advise me and point me to one. ... you cn install openjdk 1.8 (or 8.0) from the standard oss repo’s (it should already be installed) by executing ... to get oracle’s jave go to https://www.java.com/en/download/linux... More on forums.opensuse.org
🌐 forums.opensuse.org
0
0
January 8, 2016
How do I install Java 8 JRE
I'd suggest you run sudo apt update; sudo apt list | grep jre to find the package name. I do remember that the JRE and JDK package names are often confusing, so that's why I'm recommending this approach. More on reddit.com
🌐 r/linux4noobs
8
2
May 30, 2023
How can I install Java 8 on Debian 12 (bookworm)? - Unix & Linux Stack Exchange
Is there a way to install Java 8 JDK (not the runtime) on a Debian 12? More on unix.stackexchange.com
🌐 unix.stackexchange.com
June 26, 2023
🌐
Oracle
docs.oracle.com › javase › 8 › docs › technotes › guides › install › install_overview.html
JDK 8 and JRE 8 Installation Start Here
April 21, 2026 - This page gives access to instructions for installing the JDK and JRE on Oracle Solaris, Windows, Linux, and macOS computers.
🌐
WiKID Systems
wikidsystems.com › support › faq › how-can-i-install-oracle-jdk-8-from-the-command-line
How can I install Oracle JDK 8 from the command line?
curl -v -j -k -L -H "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-i586.rpm > jdk-8u51-linux-i586.rpm
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_build_of_openjdk › 8 › html › installing_and_using_red_hat_build_of_openjdk_8_for_rhel › assembly_installing-openjdk-8-on-red-hat-enterprise-linux_openjdk
Chapter 2. Installing Red Hat build of OpenJDK 8 on Red Hat Enterprise Linux | Installing and using Red Hat build of OpenJDK 8 for RHEL | Red Hat build of OpenJDK | 8 | Red Hat Documentation
You can install multiple major versions of Red Hat build of OpenJDK by using the same procedures found in Installing a JRE on RHEL by using an archive or Installing Red Hat build of OpenJDK on RHEL 8 by using an archive using multiple major versions. ... For instructions how to configure the default Red Hat build of OpenJDK version for the system, see Interactively selecting a system-wide Red Hat build of OpenJDK version on RHEL. ... For instructions on installing a JRE, see Installing a JRE on RHEL using an archive. For instructions on installing a JDK, see Installing Red Hat build of OpenJDK on RHEL using an archive.
🌐
Stack Overflow
stackoverflow.com › questions › 71017113 › how-to-install-jdk-8-on-ubuntu-server-18-04
java - How to install jdk 8 on ubuntu server 18.04? - Stack Overflow
I am trying to install JDK 8 ON Ubuntu server 18.04 LTS, with the following commands: sudo apt install openjdk-8-jre sudo apt install openjdk-8-jdk /usr/lib/jvm folder has: I also set the path in...
🌐
ExtraVM
extravm.com › billing › knowledgebase › 17 › Install-Java-8-JDK-on-CentOS-or-AlmaLinux-or-Rocky-Linux-single-command.html
Install Java 8 JDK on CentOS / AlmaLinux / Rocky Linux (single command) - ExtraVM
UPDATE April 2022: If you are using ... https://pkgs.org/download/java-1.8.0-openjdk · Go to the following Oracle website to download the latest Java JDK: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html...
Find elsewhere
🌐
openSUSE Forums
forums.opensuse.org › t › how-to-install-java-8-jre-jdk › 113766
How to install java 8 JRE & JDK? - English / Applications - openSUSE Forums
January 8, 2016 - Install the JDK by opening a terminal, becoming ROOT and switching to the directory where you downloaded the RPM package. For x64 version execute: rpm -i jdk-8u74-linux-x64.rpm
🌐
Linux Mint Forums
forums.linuxmint.com › board index › debian edition support › lmde forums › lmde archive
Installing OpenJDK8 - Linux Mint Forums
apt-get update apt-get install openjdk-8-jdk Then set the alternatives the same as with the Ubuntu directions. You can also install and use galternatives to set them in a GUI. You will see a load of updates available if you leave that jessie-backports repo enabled--it's best not to install ...
🌐
GitHub
gist.github.com › wagyourtail › b115f66d135b3818b63d9b27048d80e6
Installing Java 8 on various Linux distros · GitHub
Download the jre tar.gz (Linux Compressed Archive) from Oracle's Website or the Java Website. make sure to select the correct x86 / x64 for your Architecture, it's probably x64 if your computer's newer than 2005.
🌐
Oracle
oracle.com › java › technologies › javase
Java SE 8 Archive Downloads (JDK 8u202 and earlier)
This page includes archive downloads for Java SE 8u202 and earlier. The archive downloads for Java SE 8u211 and later updates are available, under the Java SE OTN License. The JDK is a development environment for building applications using the Java programming language.
🌐
Oracle
oracle.com › java › technical details
Java SE 8 Archive Downloads (JDK 8u211 and later)
JRE 8u461 checksums and OL 9 GPG Keys for RPMs. This software is licensed under the Oracle Technology Network License Agreement for Oracle Java SE ... JDK 8u451 checksums and OL 8 GPG Keys for RPMs.
🌐
LinuxCapable
linuxcapable.com › home › ubuntu › how to install openjdk 8 on ubuntu 26.04, 24.04 and 22.04
How to Install OpenJDK 8 on Ubuntu 26.04, 24.04 and 22.04 - LinuxCapable
April 29, 2026 - Install OpenJDK 8 on Ubuntu 26.04, 24.04 and 22.04 using APT. Covers JRE vs JDK, verification, version switching, removal.
🌐
Medium
medium.com › appliedcode › how-to-install-java-8-jdk-8u45-on-ubuntu-linuxmint-via-ppa-1115d64ae325
How to Install JAVA 8 (JDK 8u45) on Ubuntu & LinuxMint Via PPA | by Mohit Sethi | Appliedcode | Medium
February 9, 2017 - This blog post will help you to Install Oracle JAVA 8 (JDK/JRE 8u25) on Ubuntu 14.04 LTS, 12.04 LTS and 10.04 and LinuxMint systems using PPA File.
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-java-on-centos-and-fedora
How To Install Java on CentOS, Rocky Linux, RHEL, and Fedora | DigitalOcean
March 18, 2022 - You can learn how to configure ... Rocky Linux 8. There are three different editions of the Java Platform: Standard Edition (SE), Enterprise Edition (EE), and Micro Edition (ME). This tutorial is focused on Java SE (Java Platform, Standard Edition). Almost all open source Java software is designed to run with Java SE. There are two different Java SE packages that can be installed: the Java Runtime Environment (JRE) and the Java Development Kit (JDK)...
🌐
Imec
jfed.ilabt.imec.be › java8_on_linux
Java 8 on Linux
su - echo "deb http://ppa.laun... apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 apt-get update apt-get install oracle-java8-installer java -version #verify if java was installed correctly apt-get install oracle-java8-set-default exit ...
🌐
Liquid Web
liquidweb.com › home › help docs › server administration › linux server administration › how to install java on centos 7 (java 8)
How to Install Java on CentOS 7 (Java 8) | Liquid Web
December 15, 2025 - Let’s jump right in! ... Open the terminal and login as root. If you are logged in as another user, you will need to add sudo before each command. ... java -version openjdk version "1.8.0_191" OpenJDK Runtime Environment (build 1.8.0_191-b12) ...