Install Sun/Oracle Java JDK/JRE 6u45 on Fedora 19/18, CentOS/RHEL 6.4/5.9 - Comment Page: 5

Please note: This guide still working normally if you want install Sun/Oracle Java 6, but if you want Java 8 version, then check Install Oracle Java JDK/JRE 8 on Fedora, CentOS/RHEL or if you want Java 7 version, then check Howto Install Sun/Oracle Java JDK/JRE 7 on Fedora, CentOS/Red Hat (RHEL). By default, Fedora 19/18/17/16/15/14/13/12 and CentOS/Red Hat (RHEL) 6.4/6.3/6.2/6.1/6/5.9 Linux operating systems use the OpenJDK Java, which is a good choice for normal use and it works with almost all the Java programs normally. OpenJDK is also easy to install and maintain with YUM package management, but some cases, Sun/Oracle Java installation is necessary, for example, if some program...

145 comments on “Install Sun/Oracle Java JDK/JRE 6u45 on Fedora 19/18, CentOS/RHEL 6.4/5.9 - Comment Page: 5

1 3 4 5
    1. Thanks for the instructions. However, I made a typo and can’t find the waqy to undo it. while typing the following command, I wrote /usr/lin/ –etc– instead of lib. Now, everytime I invoke java, an error message appears because there is no /usr/lin path… Tried unlink but didn’t work.

      alternatives –install /usr/lib/mozilla/plugins/ /usr/java/jre1.6.0_31/lib/i386/ 20000

      The solution is probably quite easy, but can’t find the way around it:


      • Hi Vicente,

        Try following to remove it:

        ## first check all ##
        alternatives --display
        ## then remove all with following command ##
        alternatives --remove /usr/java/jre1.6.0_31/lib/i386/

        And then install it again…please let me know do you get it working?

    2. This Guide really helpful!
      Thanks a lot JR for sharing!

    3. I have to say is be very careful when doing step 4, esp when dealing with symoblic links.
      For example in alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_33/jre/bin/java 20000
      Make sure that the path /usr/java/jdk1.6.0_33/jre/bin/ really exist before hitting the enter key.
      In some java installations I have seen, the path can become /usr/java/jdk1.6.0_33/bin/ (ie: without the jre).
      make sure you check your file system before making symbolic link, because once a syombolic link is establish, there is no turning back.

      • Hi chen,

        Of course can turn back… :) Just remove wrong symbolic link using alternatives –remove … command (or using rm -f … command)… :)

    4. This tutorial worked great on my Fedora 17, 64bit machine using the latest JDK. I can pass the Java test page without a problem.

      I am having a problem however opening any .jnlp files for example the Java consoles for IPMI and Spider KVMs. Since this 64bit rpm and this guide does not include javaws for 64bit machines, how will I be able to launch the .jnlp files?

      Thanks in advance

      • Hi gnunix,

        Excellent to hear that you got Java working!

        I actually just checked this 6u33 package and looks like javaws is currently also included on 64-bit package so you can use it normally with 64-bit system, check javaws:

        ls /usr/java/jdk1.6.0_33/bin/javaws

        Configure javaws:

        alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_33/jre/bin/javaws 20000

        I updated this guide too. :)

        • Thank you for your update JR. Now it works flawlessly. :)

    5. Where do I find the rpm.bin files? When I go to Oracle’s Java downloads page I only see .rpm and .tgz.


      • I meant to say that I only see .rpm and .tar.gz on the Oracle download page.

        • Hi Dean,

          If you are installing Java 7, then check Java 7 install guide and use .rpm packages, but if you want to install Java 6, then scroll down on Oracle download page and find Java 6 packages, which are rpm.bin.

    6. Hi,
      i am using Redhat 5.3 EL 64 bit, firefox 17.0.1 64bit, java jre6u38 64 bit. I have done all above steps but still ‘about:plugins’ not showing java plugins.

      #alternatives –display – status is auto.
      link currently points to /usr/java/jre.1.6.0_38/lib/amd64/
      /usr/java/jre1.6.0_38/lib/amd64/ – priority 20000
      current ‘best’ version is /usr/java/jre1.6.0_38/lib/amd64/

      also trying to execute
      #chcon -t execmem_exec_t ‘/usr/lib64/firfox-17.0.1/firefox’
      chcon: failed to change context of /usr/lib64/firefox-17.0.1/firefox to system_u:
      object_r:execmem_exec_t: Invalid argument

      • Hi Rais,

        How did you installed your Firefox 17.0.1? Is Java plugin working if you try it with RHEL default Firefox?

    7. i extract tar package and deleted all files of old firefox-3.0.5 in /usr/lib64/firefox-3.0.5/ and copy firfox 17 files in firefox-3.0.5 folder
      Note: i dont change or replace firefox 3.0.5 folder i just replace files.

    8. yes firefox 3.0.5 shows java plugins in about:plugins folder but when i open java supported website firefox crash and when i remove java symlink then firefox does not crash.

      • Hi Rais,

        Your install method sounds risky, if you have Firefox 3.0.5 installed from RHEL original RPMs. I recommend you to upgrade your RHEL to version 5.8 and you should get Firefox 10 RHEL patched version or alternatively install and test Firefox 17 on your user home dir and try Java plugin with it.

    9. thanks for your reply, i have downloaded RHEL 5.8 64 bit but when i install it python-ldap missing and installation end, can you give me a link for RHEL 5.8 64 bit ?
      hey you say upgrade can you tell me how can i upgrage 5.3 to 5.8 ?

      • You can download RHEL 5.8 from RHEL Download page.

        Upgrade you can actually do simple using following command:

        yum update

        If you have some important data on your system, then I recommend you to backup everything important before upgrade.

    10. Hello, I just dropped by to look at this blog. It appears really
      great and I had a good time browsing it, thank you very much for the helpful article!

    11. chrome install-6U23 what is it & uses in laptops….

1 3 4 5

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.