try using this command in the terminal:
sudo apt install default-jre
then you can try using:
java -version
to check version
Answer from neoMidori on askubuntu.comOracle
java.com › en › download › help › linux_x64_install.html
Linux 64-bit installation instructions for Java
This procedure installs the Java Runtime Environment (JRE) for 64-bit Linux, using an archive binary file (.tar.gz). Go to http://java.com and click on the Download button.
Oracle
oracle.com › java › technologies › downloads
Download the Latest Java LTS Free
Download the Java including the latest version 17 LTS on the Java SE Platform. These downloads can be used for any purpose, at no cost, under the Java SE binary code license.
How do I install Java JRE on Linux?
Do you need to install Oracle's Java? Cuz if you don't need you can just open a terminal and type sudo apt install default-jre -y and it's ready to use (if you're on debian-based distros) More on reddit.com
Attempting to download Java 17 on Linux Mint
Installing oracle jdk is a hassle in linux. Install openjdk instead by using sudo apt install openjdk-17-jdk More on reddit.com
How do i install Java on Xubuntu?
sudo apt install openjdk-8-jre More on reddit.com
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
Videos
How To Install Oracle Java (JDK) On Ubuntu 24.04 LTS ...
05:34
How To Install Java On Ubuntu 24.04 LTS (Linux) - YouTube
05:19
How to Install Java on Ubuntu and set JAVA_HOME (2025 UPDATE) #JDK ...
How to install Java on Linux | Install latest Java
How To Install Oracle Java (JDK) On Ubuntu Debian Linux
Fabric Documentation
docs.fabricmc.net › players › installing-java › linux
Installing Java on Linux | Fabric Documentation
April 2, 2026 - This guide will walk you through installing Java 25 on Linux.
Top answer 1 of 2
4
try using this command in the terminal:
sudo apt install default-jre
then you can try using:
java -version
to check version
2 of 2
0
Do not download binaries straight from the Internet. That is not how to install software on Linux. It is how Windows users do it, but it is wrong on Linux.
Install it from the package manager. Google for instructions for your version, since you did not bother to tell us what you are running. Without detailed specific info we can't help you.
Ubuntu
ubuntu.com › tutorials › install-jre
Install the Java Runtime Environment | Ubuntu
An Oracle account is needed to download the Oracle HotSpot JRE. Oracle does not currently offer JRE packages for Java 11 or above from their website so, for this tutorial, we will use the Oracle HotSpot JRE version to be 8u291 (Java 8, update 291). Create a directory to install JRE in with: sudo mkdir /usr/local/java · Move the JRE binaries into the directory: sudo mv jre-8u291-linux-x64.tar.gz /usr/local/java ·
Reddit
reddit.com › r/linuxquestions › how do i install java jre on linux?
r/linuxquestions on Reddit: How do I install Java JRE on Linux?
February 16, 2021 -
I followed the instructions on the Java official website but when I tried to run some thing related to JRE on the terminal it says Java not found
Top answer 1 of 5
5
Do you need to install Oracle's Java? Cuz if you don't need you can just open a terminal and type sudo apt install default-jre -y and it's ready to use (if you're on debian-based distros)
2 of 5
3
With Linux, generally you install things from your distro's repositories, rather than downloading files with a web browser like you're probably used to with Windows. So for ElementaryOS the terminal command is sudo apt install [package] And to uninstall something: sudo apt remove [package] You can also install Synaptic Package Manager which will give you a graphical interface to select packages from while you're still getting used to the terminal: sudo apt install synaptic
Oracle
java.com › en › download › help › linux_install.html
How do I download and install 32-bit Java for Linux?
Instructions to download and install the Java Runtime Environment (JRE) for 32-bit Linux
Oracle
java.com › en › download › manual.jsp
Download Java
» What is Java » Remove older versions » Security » Support » Other help · This download is for end users who need Java for running applications on desktops or laptops. Java 8 integrates with your operating system to run separately installed Java applications.
OpenJDK
openjdk.org
OpenJDK
Learn about the key active Projects in the Community including Amber (high-productivity language features), Babylon (foreign programming models), Leyden (better startup and warmup), Loom (lightweight concurrency), Panama (foreign functions and foreign data), Valhalla (primitive types and ...
Oracle
java.com › en › download › help › linux_x64rpm_install.html
Linux 64-bit RPM Java installation instructions
This procedure installs the Java Runtime Environment (JRE) for 64-bit RPM-based Linux platforms, such as Red Hat and SuSE, using an RPM binary file (.rpm) in the system location. You must be root to perform this installation. Go to http://java.com and click on the Download button.
Oracle
java.com › en
Java | Oracle
Free Java Development Kit (JDK) downloads and resources from Oracle, the stewards of Java · Developer Downloads · Developer Resources · Enterprise Resources ·
FlyingMachineArena
flyingmachinearena.org › home › how to install java for linux
How to Install Java for Linux - FlyingMachineArena
March 4, 2026 - Distributions like Ubuntu, Debian, Fedora, CentOS, and Arch Linux all provide Java packages through their respective repositories. This method simplifies installation, updates, and uninstallation. Manual Installation from Oracle/OpenJDK Tarballs: For specific versions or to have finer control over the installation path, you can download the official JDK tarballs from Oracle or the OpenJDK project and install them manually.
Oracle
oracle.com › java › technical details
Java Archive Downloads - Java SE 8u211 and later
Go to the Oracle Java Archive page.
Oracle
java.com › en › download › help › windows_manual_download.html
How do I manually download and install Java for my Windows computer?
Use these simple instructions to manually download and install Java (also known as Java Runtime Environment or JRE) for your Windows computer
Coderanch
coderanch.com › t › 735031 › java › Installing-Java-Linux
Installing Java on Linux? (Java in General forum at Coderanch)
The "apt-get update" command updates your machine's local list of distro servers to reflect the currenlly-available mirrors (presumably focused on the ones that respond fastest). That helps optimize the package download process. If you go that route, it's no different than installing any other Linux app. You can also pull pure binaries built by the OpenJDK project and hosted on Oracle's java.net servers.
Oracle
docs.oracle.com › en › java › javase › 22 › install › installation-jdk-linux-platforms.html
Installation of the JDK on Linux Platforms
March 14, 2024 - In addition, you can check which specific RPM package provides the java files: ... See Oracle JDK Certified Systems Configurations for information about supported platforms, operating systems, and browsers. You can install the JDK on a Linux platform from archive files, debian packages, downloadable Red Hat Package Manager (RPM) packages files, or RPM packages from Oracle Linux (OL) repositories.