🌐
Medium
medium.com › @vivekbugale › install-openjdk-13-in-centos-3b82b42a1a7a
Install OpenJDK 13 in Centos. In this tutorial, we are going to see… | by Vivek Bugale | Medium
February 6, 2020 - Install OpenJDK 13 in Centos In this tutorial, we are going to see how we can install OpenJDK 13, set JAVA_HOME environment variable and set default java version in centos. Let’s start! Install …
🌐
Kifarunix
kifarunix.com › home › howtos › install oracle java (openjdk) 13 on centos 8
Install Oracle Java (OpenJDK) 13 on CentOS 8 - kifarunix.com
March 12, 2024 - Running transaction Preparing : 1/1 Installing : jdk-13.0.1-2000:13.0.1-ga.x86_64 1/1 Running scriptlet: jdk-13.0.1-2000:13.0.1-ga.x86_64 1/1 Verifying : jdk-13.0.1-2000:13.0.1-ga.x86_64 1/1 Installed: jdk-13.0.1-2000:13.0.1-ga.x86_64 Complete! Once the installation is done, you should be having the Java files in their right directories.
🌐
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 - The following sections provide steps to install OpenJDK, OpenJRE, and Oracle Java on a CentOS or Rocky Linux system.
🌐
installvirtual
installvirtual.com › home › how to install openjdk 13 on centos 8
How to install OpenJDK 13 on CentOS 8 - installvirtual
October 10, 2019 - Here we will use yum to install OpenJDK 13 on Centos 8. $ yum update -y $ yum install adoptopenjdk-8-openj9 -y · Now after installing open JDK check the version using the following command · $ java -version openjdk version "13" 2019-09-17 OpenJDK Runtime Environment AdoptOpenJDK (build 13+33) ...
🌐
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.
🌐
TechnoWikis
technowikis.com › 9398 › how-to-install-java-8-or-java-13-on-centos-8
How to install Java 8 or Java 13 on CentOS 8
October 26, 2019 - How to install Java 8 or Java 13 on CentOS 8 · Advertisements · Sponsored articles cost $40 per post. You can contact us via Feedbackreport this ad · All categories · Tutorials 7.3k · Microsoft 1.8k · Android 1.4k · Security 113 · Linux / Unix 543 · Internet 743 ·
🌐
Stack Overflow
stackoverflow.com › questions › 77492443 › how-can-i-install-openjdk-13-x-on-centos-7
java - How can I install openjdk 13.x on Centos 7? - Stack Overflow
On the server with version 13 it says it openjdk is from Epel repo: yum info java-latest-openjdk.x86_64 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile [...] https://ookla.bintray.com/rhel/repodata/repomd.xml: [Errno 14] curl#51 - "Unable to communicate securely with peer: requested domain name does not match the server's certificate ." Trying other mirror. Installed Packages Name : java-latest-openjdk Arch : x86_64 Epoch : 1 Version : 13.0.2.8 Release : 1.rolling.el7 Size : 573 k Repo : installed From repo : epel Summary : OpenJDK Runtime Environment 13 URL : http://openjdk.java.net/ License : ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C : and zlib and ISC and FTL and RSA Description : The OpenJDK runtime environment.
🌐
TecMint
tecmint.com › home › open source › how to install java 17 on rhel-based linux distributions
How to Install Java 14 on CentOS/RHEL 7/8 & Fedora
November 1, 2021 - I don’t know if it is the correct method to resolve this problem but it worked for me, I’m on CentOS 8. Reply ... I installed OpenJDK 13 the I did the global shell start-up file.
Find elsewhere
🌐
Thebootstrappingguy
thebootstrappingguy.com › the bootstrapping guy › how to install java 13 on centos/rhel 7/8 & fedora 30/31
How to Install Java 13 on CentOS/RHEL 7/8 & Fedora 30/31The Bootstrapping Guy | The Bootstrapping Guy
October 7, 2019 - Java is a secure, stable, and well known, general-purpose programming language and computing technology platform with many interconnected capabilities. To run Java-based applications, you must have Java installed on your server.
🌐
Oracle
docs.oracle.com › en › java › javase › 13 › install › installation-jdk-linux-platforms.html
3 Installation of the JDK on Linux Platforms
To install the 64-bit JDK on an RPM-based Linux platform: Download the file, jdk-13.interim.update.patch_linux-x64_bin.rpm. Before you download a file, you must accept the license agreement. Ensure that you have root user access by running the command su and entering the superuser password.
🌐
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.
🌐
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.
🌐
CentLinux
centlinux.com › home › centos › how to install java on centos 8
How to install Java on CentOS 8 | CentLinux
November 16, 2025 - Transfer the downloaded file to java-01.sysadminlabs.com by using WinSCP. Connect to java-01.sysadminlabs.com as root user by using a ssh tool such as PuTTY. You can install Oracle Java SE 13 by using dnf command.
🌐
Kifarunix
kifarunix.com › home › howtos › install oracle java 12 on centos 7/fedora 29
Install Oracle Java 12 on CentOS 7/Fedora 29 - kifarunix.com
March 11, 2024 - In this guide, we are going to learn how install Oracle Java 12 on CentOS 7/Fedora 29. For the installation of Oracle Java 12 on Ubuntu 18.04/Debian 9.8
🌐
Greenwebpage
greenwebpage.com › home › blog › how to install java on centos 10 : ultimate guide
How to Install Java on CentOS 10 : Ultimate Guide
November 3, 2025 - Finally, configure the JAVA_HOME environment variable by editing /etc/profile.d/java.sh and adding export JAVA_HOME=/usr/lib/jvm/java-21-openjdk followed by export PATH=$PATH:$JAVA_HOME/bin, then reload it using source /etc/profile.d/java.sh. Your Java installation on CentOS 10 is now complete and ready to use. ... CentOS 10 Containers Debian 12 Debian 13 Docker Linux Linux Administration Linux Mint 22 Python Ubuntu 22.04 Ubuntu 24.04 Virtualization Web browser Web Development Windows 11
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

🌐
ComputingForGeeks
computingforgeeks.com › home › dev › install java 18 (openjdk 18) on centos/fedora/rocky linux
Install Java 18 (OpenJDK 18) on CentOS/Fedora/Rocky Linux | ComputingForGeeks
May 8, 2023 - Welcome today’s guide on how to install Java 18 on CentOS 7/6 & Fedora 31/30/29. Java 18 reached General Availability on 17 September 2019. Production-ready binaries are available from Oracle for Java SE Development Kit 18 on.