🌐
TecAdmin
tecadmin.net › install-oracle-java-11-lts-on-centos
How To Install Java 11 on CentOS 7/6 & RHEL 7/6 - TecAdmin
April 26, 2025 - How to Install Java 11 on CentOS 7/6 & RHEL 7/6. Steps to Install Java 11 on RedHat/CentOS & Fedora system using yum command line.
🌐
Linuxize
linuxize.com › home › java › how to install java on centos 7
How to Install Java on CentOS 7 | Linuxize
February 24, 2020 - If you are not sure which Java implementation and version to install, the general recommendation is to install OpenJDK 11 JDK, which is the current LTS version of Java. Before starting with the tutorial, make sure you are logged in as root or user with sudo privileges . OpenJDK, the open-source implementation of the Java Platform, is the default Java development and runtime in CentOS 7.
🌐
ComputingForGeeks
computingforgeeks.com › home › centos › install java 11 on centos 7 / fedora 40/39/38/37
Install Java 11 on CentOS 7 / Fedora 40/39/38/37 | ComputingForGeeks
August 2, 2024 - This article will help you to install Oracle Java 11 on CentOS 7 and Fedora. Java 11 is a long-term support (LTS) release.
🌐
ARZ Host
arzhost.com › blogs › install-java-11-12-on-centos-7
How To Install Java 11 & 12 On CentOS 7?
October 4, 2023 - /usr/lib/jvm/java-11-openjdk-11.0.3.7-0.el7 6.x86 64/bin/java · You have learned How to Install Java 11 & 12 on CentOS 7 through this tutorial.
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install java on centos and rocky linux
How to Install Java on CentOS and Rocky Linux
December 16, 2025 - Install Java on CentOS and Rocky Linux with this tutorial. Also, learn to change the default version and set the environment variable.
🌐
Linux Hint
linuxhint.com › install_oracle_jdk11_centos7
Install Oracle JDK 11 on CentOS 7 – Linux Hint
Now, run the following command to install Oracle JDK 11 RPM package file on your CentOS 7 machine. ... Oracle JDK 11 should be installed. Now, to make sure Oracle JDK 11 is working correctly, run the following command: ... As you can see, Java 11 is working.
🌐
Vegastack
vegastack.com › tutorials › how-to-install-java-on-centos-7
How to Install Java on CentOS 7
November 15, 2023 - For example, sudo yum install java-1.11.0-openjdk installs OpenJDK 11. Edit the /etc/environment file and add JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-<version> (replace <version> with the installed Java version).
🌐
CentLinux
centlinux.com › home › centos › how to install java on centos 7
How to install Java on CentOS 7 | CentLinux
December 3, 2025 - Download Java JDK 11 RPM for CentOS 7 from Oracle Technical Network (OTN) and copy it to the home directory of root user. Install the downloaded package using rpm command.
🌐
SysAdminXpert
sysadminxpert.com › home › linux › steps to upgrade java 8 to java 11 on centos 7
Steps To Upgrade Java 8 To Java 11 On CentOS 7 | SysAdminXpert
June 7, 2024 - We will replace the default Java version from Java 8 with Java 11 version. This method is to follow when you have multiple Java versions installed on a server, and now you want to set the default java version. This can be done with the alternative system utility. ... Just enter the number when prompted which will change the default Java version. ... [root@CentOS-7 ~]# sudo alternatives --config java There are 3 programs which provide 'java'.
🌐
Ignite Realtime
discourse.igniterealtime.org › openfire
Cent OS 7 (EOL) how to install Java 1:11.0.0 for 4.8 - Openfire - Ignite Realtime Community Forums
March 1, 2024 - 1st off, I love CentOS but I am original Mac/PC user so I only use Unix on a few servers. Still very much learning each time I deploy or use it. I know I need to replace CentOS and going with Rocky but until that new deployment I need Openfire to work. Trying to update to 4.8 and I get this ...
Find elsewhere
🌐
LinuxVox
linuxvox.com › blog › how-to-install-java-on-centos-7
How to Install Java on CentOS 7: A Comprehensive Guide — linuxvox.com
Use scp (Secure Copy) to transfer the downloaded RPM to your CentOS server. Replace local-path and user@server-ip with your details: scp /local-path/jdk-17_linux-x64_bin.rpm user@server-ip:/tmp/ Navigate to the /tmp directory and install the ...
🌐
GTX Gaming
gtxgaming.co.uk › home › how to install java on centos 7
How to install Java on Centos 7
December 5, 2023 - Install Java. Run sudo tar zxvf jdk-11.0.2_linux-x64_bin.tar.gz -C /usr/java to extract the Java tar.gz file into the /usr/java directory.
Top answer
1 of 2
27

As of November 2020

you can achieve this in 2 steps:

  1. Install Java 11 using yum:

    yum install java-11-openjdk-devel

  2. Get all the Java configurations available in your machine:

    alternatives --config java

    Run the above command, select the version you want to set, I've set 1 here:

    There are 2 programs which provide 'java'.
    Selection    Command
    
    -----------------------------------------------
       1           java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.8.10-0.el7_8.x86_64/bin/java)
    *+ 2           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java)
    
    Enter to keep the current selection[+], or type selection number: 1
    
  3. Check java -version:

    openjdk version "11.0.8" 2020-07-14 LTS
    OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
    OpenJDK 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode, sharing)
    

Java 11 is now set to be used globally.

2 of 2
18

The reason, in short, is because someone has to maintain the packages and put these into the repositories your system is using and verify, that they run stable. For example, the OpenJDK 11 on Debian is still in buster (testing) and sid (unstable) and therefore not available in any stable branch. I guess in CentOS (I am not that familiar with it tbh.) it's the same situation.

Sooner or later you'll have to install software without a manager in any OS, so even if you're saying you're a noob, you'll have to learn that sooner or later. And if you want to use openjdk11 now, you'll have to use either an unofficial repository or install the software by hand, what I'd recommend.

However, here is a guide which is the second hit on Google for openjdk11 centos:

curl -O https://download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_linux-x64_bin.tar.gz
tar zxvf openjdk-11.0.1_linux-x64_bin.tar.gz
mv jdk-11.0.1 /usr/local/

vi /etc/profile.d/jdk11.sh

# create new
export JAVA_HOME=/usr/local/jdk-11.0.1
export PATH=$PATH:$JAVA_HOME/bin

source /etc/profile.d/jdk11.sh

java -version

openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

Source: https://www.server-world.info/en/note?os=CentOS_7&p=jdk11&f=2

🌐
OVHcloud
ovhcloud.com › home › tutorials › how to install java on centos 7
How to install Java on Centos 7 ? | OVHcloud Worldwide
In this tutorial you will learn how to install a Java Development Kit (JDK) on the Centos 7 Linux distribution.
🌐
IBM
ibm.com › docs › en › qradar-common
Installing Java on RHEL or CentOS Linux - IBM Documentation
December 1, 2025 - Go to IBM Semeru Runtimes Downloads , and download the IBM Semeru Runtime Certified Edition JDK, Version 11 RPM package for Linux® on 64-bit systems. Copy the installation package to your computer or VM where you plan to install the Disconnected ...
🌐
Server World
server-world.info › en › note
CentOS 7 : Install OpenJDK 11 : Server World
(05) Install PHP 7.3 · Python · (01) Install Python 3.3 · (02) Install Python 3.4 · (03) Install Python 3.5 · (04) Install Python 3.6 · (05) Install Python 3.8 · (06) Install Django · .NET Core · (01) Install .NET Core 2.0 · (02) Install .NET Core 3.0 · Java · (01) Install JDK 8 · (02) Install OpenJDK 8 · (03) Install JDK 11 ·
🌐
DevOpsSchool.com
devopsschool.com › blog › complete-guide-of-java-installation-in-linux
Java Installation Guide in Linux & Windows -
1 DOWNLOAD OPEN JDK & JRE JAVA PACKAGE FROM – https://jdk.java.net/archive/ 2 Download and Install JDK/JRE 7 in Centos & RHEL · 3 Download and Install JDK/JRE 8 in Centos & RHEL · 4 Download and Install JDK/JRE 9 in Centos & RHEL · 5 Download ...
🌐
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 - This tutorial will show you how to install Java on current versions of RPM-based Linux distributions: Red Hat Enterprise Linux, CentOS, Fedora, and Rocky Linux.
🌐
InMotion Hosting
inmotionhosting.com › inmotion hosting home › support › product guides › vps hosting › how to install java on centos
How to Install Java on CentOS | InMotion Hosting
January 4, 2024 - Java is required for running some games on your Linux VPS including Minecraft. The object-oriented programming language powers many websites and applications on computers and mobile devices. Below we cover how to: ... You need root access to your linux server on your VPS or Dedicated server to continue. ... The installation process consists of installing OpenJDK, the open source Java implementation which includes Font Renderer, or proprietary Oracle JRE/JDK with Flight Recorder which builds on top of OpenJDK.