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

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: 1

1 2 3 5
    1. […] Here is the original: Howto Install Sun Java (JDK, JRE) on Fedora, CentOS, Red Hat | if … […]

      Reply
    2. […] here to read the rest: Howto Install Sun Java (JDK, JRE) on Fedora, CentOS, Red Hat | if … Share and […]

      Reply
    3. […] wiÄ™cej: Howto Install Sun Java (JDK, JRE) on Fedora, CentOS, Red Hat | if … a-very-good, centos, does-not, fedora, have-the, openjdk, operating-system, redhat, redhat-linux, […]

      Reply
    4. […] Sun’s Java, because I think NetBeans works faster with Sun’s Java. Here is the guide, howto install Sun’s Java on Fedora, CentOS, Red Hat (RHEL). OpenJDK should also work.2. Download NetBeans 6.9 from Sun’s NetBeans download page Select […]

      Reply
    5. […] Installed CentOS 5.5 Linux Command LineWhat to do next?Install Adobe Flash Player 10 on CentOS 5.5Install Sun Java (JDK, JRE) on CentOS 5.5Install Adobe AIR 1.5 and 2 on CentOS 5.5Install VirtualBox (with yum) on CentOS 5.5     […]

      Reply
    6. […] Ruby on Rails framework).Install Eclipse SDK 3.6 (Helios) on Fedora, CentOS, Red Hat (RHEL)1. Install Sun Java on Fedora, CentOS, Red Hat (RHEL)2. Download Eclipse SDK 3.6 (Helios)Download suitable version from http://www.eclipse.org/downloads. This […]

      Reply
    7. […] Google Chrome Beta or Google Chrome Unstable on Fedora 13Install Adobe Flash Player 10 on Fedora 13Install Sun Java (JDK, JRE) on Fedora 13Install Adobe AIR 1.5 and 2 on Fedora 13Install Adobe (Acrobat PDF) Reader on Fedora 13Install […]

      Reply
    8. […] Google Chrome Beta or Google Chrome Unstable on Fedora 13Install Adobe Flash Player 10 on Fedora 13Install Sun Java (JDK, JRE) on Fedora 13Install Adobe AIR 1.5 and 2 on Fedora 13Install Adobe (Acrobat PDF) Reader on Fedora 13Install […]

      Reply
    9. […] Beta or Google Chrome Unstable on Red Hat (RHEL) 6Install Adobe Flash Player 10 on Red Hat (RHEL) 6Install Sun Java (JDK, JRE) on Red Hat (RHEL) 6Install Adobe AIR 1.5 and 2 on Red Hat (RHEL) 6Install Adobe (Acrobat PDF) Reader on Red Hat (RHEL) […]

      Reply
    10. […] Simple Android Test Project1. Preparing Your Development Computer and Install Required softwares1.1 Install Sun/Oracle Java JDK/JRE1.2 Install Eclipse SDK 3.6 (Helios)2. Install Andoid SDK2.1 Change root usersu – ## OR ## sudo […]

      Reply
    11. […] dir diese erstklassige Anleitung zum Thema auf If not True then False an. Dort erfährst du, wie du neben dem OpenJDK das JDK von Oracle (bzw. […]

      Reply
    12. Sorry to say this, but doesn’t work for me. Firstly, I installed the JRE RPM on Fedora 13 x86_64, and I found out that the paths to the binaries are slightly different for JRE than for JDK (/usr/java/jre1.6.0_22/bin/java; /usr/java/jre1.6.0_22/lib/amd64/libnpjp2.so (64bit, obviously); javaws links back to the directory it’s in, the website says to install the 32bit package for javaws functionality).

      But on top of this, even after having configured alternatives with the correct paths, SeaMonkey 2.0.8 doesn’t seem to see the plugin, and the check on the Java site fails. For now I have no idea what else to try.

      Reply
      • Hi szal,

        Thank you for corrections. I updated this guide to work better with Sun Java JRE version.

        And your problem. Do you have any other browser to test the libjavaplugin?

        Could you post following command output:

        
        alternatives --display libjavaplugin.so
        
        Reply
    13. Hi JR —

      Thanks for the reply. I tried the Java check with Konqueror after making sure that libjavaplugin.so is listed in the Plugins section of the settings. With Konqueror the site shows no result at all, it just switches to a page linking to the installation instructions after being done scanning.

      The output of alternatives –display libjavaplugin.so is:

      [[email protected] ~]# alternatives --display libjavaplugin.so
      libjavaplugin.so - status is manual.
      link currently points to /usr/java/jre1.6.0_22/lib/amd64/libnpjp2.so
      /usr/java/jre1.6.0_22/lib/amd64/libnpjp2.so - priority 20000
      Current `best' version is /usr/java/jre1.6.0_22/lib/amd64/libnpjp2.so.

      I appreciate your help and hope you have an idea.

      Greetings

      szal

      Reply
      • Hi again szal,

        I figure out that where the problem is and I improved this guide more. I even test this clean installed Fedora 13 64-bit, Sun Java JRE 64-bit and with SeaMonkey 2.0.8, Firefox 3.6.12.

        So to get Java Plugin to work, do following (as root)
        Remove current libjavaplugin with following command:

        
        alternatives --remove libjavaplugin.so /usr/java/jre1.6.0_22/lib/amd64/libnpjp2.so
        

        And then do the alternatives install again, with following command:

        
        alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_22/lib/amd64/libnpjp2.so 20000
        

        Finally restart browser and it should work. :)

        Reply
    14. Works great, thanks again JR! :)

      Reply
    15. Works! Thanks!
      But I did few things more before Firefox java plugin start working:
      # semanage fcontext -a -t execmem_exec_t ‘/usr/lib64/firefox-3.6/firefox’
      # chcon -t execmem_exec_t ‘/usr/lib64/firefox-3.6/firefox’
      # semanage fcontext -a -t execmem_exec_t ‘/usr/lib64/nspluginwrapper/plugin-config’
      # chcon -t execmem_exec_t ‘/usr/lib64/nspluginwrapper/plugin-config’

      Best,
      Jozsef

      Reply
      • Jozsef,

        Thanks! I’m using F14 (32-bit) and I installed the JDK etc. But, I was seeing the javaplugin library in the about:plugins page of firefox. So, I followed your instructions and the javaplugin works now.

        Maybe a quick note about this in the instructions would be helpful.

        Thanks again!

        Reply
1 2 3 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.

Close