This one could help. https://paper.readthedocs.io/en/latest/java-update/index.html Answer from Deleted User on reddit.com
🌐
Letbox
my.letbox.com › knowledgebase › 28 › Installing-Java-16-in-CentOS-6--The-Simplest-Way.html
Installing Java 1.6 in CentOS 6 – The Simplest Way - Knowledgebase - LetBox Limited
Default repository in CentOS 6 will give you Java 1.5 JRE and SDK packages. I will show you on how to install version 1.6 using yum.
🌐
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 - At the time of writing this article, OpenJDK 16 is the currently available version to be installed using the following commands from the EPEL repository. # yum install java-latest-openjdk # java -version ·
Discussions

How do I upgrade to Java 16
This one could help. https://paper.readthedocs.io/en/latest/java-update/index.html More on reddit.com
🌐 r/admincraft
19
73
June 8, 2021
linux - How do I install Java OpenJDK 1.6.0_36 to CentOS 7.2 - Stack Overflow
I want to download Java version "1.6.0_36" in CentOS. I tried sudo yum install java-1.6.0-openjdk, but it returned Java version 1.6.0_41. How do I install a specific version? ... By the way, be aware that Java 16 reaches end-of-life in October. Supplanted by Java 17 that came out mid-September. More on stackoverflow.com
🌐 stackoverflow.com
How to install Java SDK on CentOS? - Stack Overflow
I have CentOS 5, but I don't know the steps to install Java SDK on Linux. Where to download the RPM file and what can I do next to fully install that? Then I need to install Tomcat. Or is there ... More on stackoverflow.com
🌐 stackoverflow.com
linux - centos 7 install java version 1.6.0_45 and PostgreSQL 9.3.16 - Stack Overflow
I used centos 7 And I have already java and PostgreSQL which are installed to my system this is the java version and PostgreSQL version : java -version java version "1.6.0_45" Java(TM) SE Runtime More on stackoverflow.com
🌐 stackoverflow.com
June 29, 2017
🌐
Medium
medium.com › @anarmammadli › how-to-install-java-jdk-16-on-centos-ebde0537e504
How to install JDK 16 on CentOs. How to install Java(JDK) 16 on CentOs | by Anar Mammadli | Medium
April 18, 2024 - cd ~/Downloadswget --no-cookies ... download link and install another version. For another version go there · sudo yum localinstall jdk-16.0.2_......
🌐
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 - 2. Select the desired Java SE version on the webpage and click the download link for the RPM package. 3. After the download is complete, install the package with the command below: sudo yum localinstall [path]/jre-[version]-linux-x64.rpm
🌐
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 - In this tutorial, you installed and managed multiple versions of Java using the yum package manager, the alternatives command, and environment variables.
🌐
DevOpsSchool.com
devopsschool.com › blog › complete-guide-of-java-installation-in-linux
Java Installation Guide in Linux & Windows -
16 How to set JAVA HOME in Linux System? 17 How to set JAVA HOME env in Windows? 18 Command to set default Java version in Linux? 19 How to install Open JDK Java in Windows? $ su -c "yum install java-1.7.0-openjdk" # JRE Version $ su -c "yum install java-1.7.0-openjdk-devel" # JDK versionCode language: PHP (php) $ su -c "yum install java-1.8.0-openjdk" # JRE Version $ su -c "yum install java-1.8.0-openjdk-devel" # JDK versionCode language: PHP (php) $ su -c "yum install java-1.9.0-openjdk" # JRE Version $ su -c "yum install java-1.9.0-openjdk-devel" # JDK versionCode language: PHP (php) $ sudo
Find elsewhere
🌐
Techtransit
techtransit.org › home › install latest java on centos, almalinux & rocky linux
Install the latest Java on CentOS, Alma Linux, or Rocky Linux
August 5, 2025 - Installing the latest Java version on RPM-based Linux systems like CentOS, AlmaLinux, and Rocky Linux doesn’t have to be complex. Thanks to the YUM install Java command (or DNF on newer versions), it’s a relatively painless process, especially if you stick to OpenJDK.
🌐
Linuxize
linuxize.com › home › java › how to install java on centos 7
How to Install Java on CentOS 7 | Linuxize
February 24, 2020 - At the time of writing, OpenJDK 11 is the current LTS version of Java and the recommended version to install. You can install it using yum by typing the following command: ... openjdk version "11.0.3" 2019-04-16 LTS OpenJDK Runtime Environment 18.9 (build 11.0.3+7-LTS) OpenJDK 64-Bit Server VM 18.9 (build 11.0.3+7-LTS, mixed mode, sharing)
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_build_of_openjdk › 17 › html-single › installing_and_using_red_hat_build_of_openjdk_17_on_rhel › index
Installing and using Red Hat build of OpenJDK 17 on RHEL | Red Hat build of OpenJDK | 17 | Red Hat Documentation
You can ensure that JAVA_HOME environment variable persists for the current user by exporting the environment variable in ~/.bashrc. You can install Red Hat build of OpenJDK by using the yum system package manager.
🌐
HowtoForge
howtoforge.com › home › install java 16 (openjdk 16) on rocky linux 8
Install Java 16 (OpenJDK 16) on Rocky Linux 8
wget --no-check-certificate -c --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/16.0.2+7/d4a915d82b4c4fbb9bde534da945d746/jdk-16.0.2_linux-x64_bin.rpm · Once the download is complete, install the downloaded file using the following command:
🌐
OpenJDK
openjdk.org › install
OpenJDK: Download and install
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. On the command line, type: $ su -c "yum install java-1.7.0-openjdk" The java-1.7.0-openjdk package contains just the Java Runtime Environment.
🌐
Stack Overflow
stackoverflow.com › questions › 44826304 › centos-7-install-java-version-1-6-0-45-and-postgresql-9-3-16
linux - centos 7 install java version 1.6.0_45 and PostgreSQL 9.3.16 - Stack Overflow
June 29, 2017 - I want to install the same java version and PostgreSQL version in another centos system (PostgreSQL 9.3.16 and java 1.6.0_45) I didn't find the correct command . I try using this command to install java · yum install java-1.6.0-openjdk.x86_64 -y · but I find another java version : java -version openjdk version "1.8.0_102" OpenJDK Runtime Environment (build 1.8.0_102-b14) OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode) java ·
🌐
Medium
medium.com › @minaxijoshi3101 › install-java-on-centos-and-set-java-home-using-the-yum-repo-8696fea58266
Install JAVA on Centos and windows. Also, set JAVA_HOME using the YUM repo | by DevOpsLab-LiveScenarios | Medium
September 29, 2024 - Install JAVA on Centos and windows. Also, set JAVA_HOME using the YUM repo Steps: Check Centos Version: cat /etc/redhat-release or cat /etc/os-release Update the System: sudo yum update 2. Check …
🌐
Oracle
docs.oracle.com › en › java › javase › 16 › install › installation-jdk-linux-platforms.html
3 Installation of the JDK on Linux Platforms - Java
$ rpm -Uvh jdk-16.interim.update.patch_linux-x64_bin.rpm ... Delete the .rpm file if you want to save disk space. Exit the root shell. It is not required to reboot. The JDK installation is integrated with the alternatives framework. After installation, the alternatives framework is updated to reflect the binaries from the recently installed JDK. Java commands such as java, javac, javadoc, and javap can be called from the command line.
🌐
TecMint
tecmint.com › home › java › how to install java 16 in rocky linux and almalinux
How to Install Java 16 in Rocky Linux and AlmaLinux
August 2, 2021 - $ export JAVA_HOME=/opt/jdk-16.0.2 $ export PATH=$PATH:$JAVA_HOME/bin · Java is now installed.
🌐
AWS
docs.aws.amazon.com › corretto › corretto 17 user guide › amazon corretto 17 guide for linux › amazon corretto 17 installation instructions for amazon linux 2 and amazon linux 2023
Amazon Corretto 17 Installation Instructions for Amazon Linux 2 and Amazon Linux 2023 - Amazon Corretto 17
While it is recommended to use ... /etc/alternatives/java_sdk_17_openjdk for JDK. The paths under /etc/alternatives/ may point to another JDK depending on the packages installed and system configuration. Download RPMs from the Downloads page for your CPU architecture. To install the JDK, you will need to download the RPMs for both the JDK and the JRE. Install using yum ...