Install Oracle Java 7u79/80 on Fedora 24/23, CentOS/RHEL 7.2/6.8/5.11 - Comment Page: 1

Please note: This guide still working normally if you want install Sun/Oracle Java 7, but if you want Java 8 version, then check Install Oracle Java JDK/JRE 8 on Fedora, CentOS/RHEL. This is guide, howto Install Sun/Oracle Java JDK and JRE 7 CPU (7u79) and PSU (7u80) on Fedora 24/23/22/21/20/19/18/17/16/15/14/13/12, CentOS 7.2/6.8/5.11, Red Hat (RHEL) 7.2/6.8/5.11. Read more, what is difference between CPU and PSU release. If you're looking instruction for Sun/Oracle Java JDK/JRE version 6 installation on Fedora 20/19/18, CentOS/Red Hat (RHEL) 6.5/5.10, please check this guide. [inttf_post_ad1] What's new in Sun/Oracle Java 7 VM Compressed 64-bit object...

267 comments on “Install Oracle Java 7u79/80 on Fedora 24/23, CentOS/RHEL 7.2/6.8/5.11 - Comment Page: 1

1 2 3 10
    1. […] wiÄ™cej: Install Sun/Oracle Java JDK/JRE 7 (b108) on Fedora 13/CentOS 5.5 … fedora, jre, main, main-guide, rhel, still-the, still-the-main, written-guide This entry was […]

    2. Thanks for publishing this java installation guide.

    3. Hey good guide. just one suggestion. Oracle puts out an rpm.bin file. if you install that then it will make a folder in /usr/java called jdk-something and another called latest which will point at that one. you should use the rpm and then always upgrade that way. have alternatives point to /usr/bin/latest and youll never have to change it again if you want to use Oracles Java

    4. Err. edit from previous post it should be /usr/java/latest *

    5. Hi Joshua,

      I still use just .bin file on this guide, because I can’t get Oracles rpm.bin file working. I just got following error message when trying to install rpm.bin file:

      Do you agree to the above license terms? [yes or no]
      UnZipSFX 5.52 of 28 February 2005, by Info-ZIP (
        inflating: jdk-7-ea-linux-i586.rpm  
      Failed to extract the files.  Please refer to the Troubleshooting section of
      the Installation Instructions on the download page for more information.

      Do you get it to work normally?

    6. Hi JR,

      I am new to linux but I have just installed jdk7 using rpm.(I think).

      Just like you described I also got the “Failed to extract the files” message, but a jdk-7-ea-linux-i586.rpm was left in my dowload directory.
      I used this with rpm and it ran to conclusion.

      When I enter ‘java -version’ it responds with ‘1.7.0-ea’. same for javac.

      When I enter “alternatives –config javac” nothing happens.

      Is there any other way I can check if all is installed correctly?


      • Hi roy,

        Sounds, it appears that your java and javac is the correct version.

        Did you completed alternatives commands?

    7. good tutorial man thx

    8. Guia super chingona !!

      Thanks !! This Java Guide is great

    9. […] Install Sun/Oracle Java JDK/JRE 6u26 on Fedora 15, CentOS/RHEL 5.6/6By JR – Published: July 29, 2010 – Last Updated: July 29, 2011Posted in: CentOS, Desktop Guides/Howtos, Featured, Fedora, Linux, Most Popular, Programming, Red Hat (RHEL) Please note: This guide still working normally if you want install Sun/Oracle Java 6, but if you want latest Java version, then check Howto Install Sun/Oracle Java JDK/JRE on Fedora 15/14, CentOS 5.6/6 and Red Hat (RHEL) 5.6/6. […]

    10. […] 1.1 Install Sun/Oracle Java 7 JDK/JRE […]

    11. Would this break the existing alternatives “slave” system? Normally when you switch the link to java, it also switches the link to a number of other utilities as well as making sure the correct man pages are used. I’m too lazy to type out a version with all of the man pages and so forth, but wouldn’t something like this be more in line with the usual alternatives flow?

      alternatives \
      –install /usr/bin/java java /usr/java/jdk1.7.0/jre/bin/java 17000 \
      –slave /usr/lib/jvm/jre jre /usr/java/jdk1.7.0/jre \
      –slave /usr/lib/jvm-exports/jre jre_exports /usr/java/jdk1.7.0/jre/lib \
      –slave /usr/bin/keytool keytool /usr/java/jdk1.7.0/jre/bin/keytool \
      –slave /usr/bin/orbd orbd /usr/java/jdk1.7.0/jre/bin/orbd \
      –slave /usr/bin/pack200 pack200 /usr/java/jdk1.7.0/jre/bin/pack200 \
      –slave /usr/bin/rmid rmid /usr/java/jdk1.7.0/jre/bin/rmid \
      –slave /usr/bin/rmiregistry rmiregistry /usr/java/jdk1.7.0/jre/bin/rmiregistry \
      –slave /usr/bin/servertool servertool /usr/java/jdk1.7.0/jre/bin/servertool \
      –slave /usr/bin/tnameserv tnameserv /usr/java/jdk1.7.0/jre/bin/tnameserv \
      –slave /usr/bin/unpack200 unpack200 /usr/java/jdk1.7.0/jre/bin/unpack200

      It makes me wonder why the oracle jdk 1.7 RPM doesn’t do this for you during post-install…

    12. One thing that can be done if you don’t want to install both the jdk and jre is to change the mozilla plugin line for the alternatives –install to

      ## Java Browser (Mozilla) Plugin 32-bit ##
      alternatives --install /usr/lib/mozilla/plugins/ /usr/java/jdk1.7.0/lib/i386/ 20000

      • Hi Joe,

        I use normally /usr/java/jdk1.7.0/jre/lib/i386/ and it’s also on this guide. It works nice for me… :)

    13. Hi All,

      In the JRE 6 release you had the possibility to download a rpm.bin (for example jre-6u27-linux-i586-rpm.bin) package. This Package seems to have been removed from JRE 7. Anyone any idea?

      • Hi Bart,

        I don’t know reason why rpm.bin packages are removed but plain RPM packages also works nicely… :)

    14. An excellent post…!

      I was afraid that I may waste time in setting up JDK on my newly installed Fedora 15.

      Through this post, I installed it successfully within 15 minutes.

1 2 3 10

Leave a 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.