Install Java 9 JDK/JRE on RHEL/CentOS 7/6 and Fedora 27-20

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

23 Responses

  1. Minal says:

    Hi Ravi,

    Great post, and really helpful.

    I have put your techniques into use, it worked

    Thanks for sharing!

  2. DMan says:

    I was looking for a way to install OpenJDK 8 on RHEL 5, as the Oracle version comes with a heavy price for commercial use. Do you have any insight into this? Is IBM Java available for RHEL 5 in RPM binary form?

    • Ravi Saive says:

      I don’t think that latest version of JDK 8 works on RHEL 5, due to version issues. I suggest you to do a system upgrade..

      • HNR says:

        @Ravi Saive
        Hi. I want to know if java 1.8 is supported on RHEL 5.11. Could you pls help?

        • Ravi Saive says:


          I don’t think that latest Java version will support on older CentOS 5.11, why not upgrade to newer CentOS version?

          • Andrew says:

            I’m not sure if it is technically supported on RHEL 5, but it is installable. The process is a hassle though. First, uninstall previous versions of Java. You may run into dependency issues while trying to uninstall the previous versions. The only way I found to fix this is to search for the specific java rpm (rpm -qa |grep -i java) and then remove that specific rpm: rpm -e –nodeps java-1.x.x. This is generally a really, really bad idea. However, if you’re in a jam, that should work.

            Then install the jre or jdk-1.8 rpm from oracles web site using either yum install jre-1.8.xx.rpm or rpm -vhi jre-1.8.xx.rpm.

            You’ll have to update /etc/alternatives. You should be able to search on how to do this. There is a nice article on unixmen, but I don’t know the rules for posting direct links on this site.

            Hope that helps.

  3. ales says:

    Hello I did every step you mention, but on Centos7 after check java -version it displays 1.7.0_u85 :-( I tried also install it from Centos7 repo and the result is same.

    • Ravi Saive says:

      I think you already have older version of Java installed, better remove it with yum and re-install the latest version as described in this article.

  4. kalyan says:

    Hello from the above we can download the java and how to install it is some what not clear for me..After that Install java in Linux and setting java as environment variables are not getting from above info..U have specified only rpm command..will it result of getting “environment variables setting” automatically?? & That is the only command enough for the task? clear me pls..and revert me to “[email protected]” Thank you…

  5. charles igbo says:

    Do you have a documentation on how to install JavaFX on centos.

Leave a Reply to Ravi Saive Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.