Hello folks, I have written this short guide to show you how to install the Java runtime environment by Oracle in Fedora, Scientific Linux and CentOS. With Fedora the open source openjdk browser plug-in is available in the Fedora repositories.
To install OpenJDK in Fedora type at the prompt:
su -c "yum install java-1.6.0-openjdk java-1.6.0-openjdk-plugin"
In Scientific Linux x86_64 and CentOS, the open source browser plug-in IcedTea that is available in the Fedora repositories is incompatible and can’t be recompiled. The only viable alternative is to use the Java SE packages.
To install Java SE ‘rpm.bin’ in Fedora x86_64 and Scientific Linux x86_64, open Gnome-Terminal and type at the prompt:
su -c "sh ./jre-6u26-linux-x64-rpm.bin"
After the installation has completed, close Mozilla Firefox if you have not done so already and type at the prompt:
su cd /usr/lib64/mozilla/plugins ln -s /usr/java/jre1.6.0_26/lib/amd64/libnpjp2.so
This creates a symlink from the java ‘amd64′ directory to the mozilla ‘plugins’ directory.
Finally to check Java SE is working in Mozilla Firefox, enter the following text into the URL in Firefox:
about:plugins
To install Java SE ‘rpm.bin’ in Fedora x86 and Scientific Linux x86, type at the prompt:
su -c "sh ./jre-6u26-linux-i586-rpm.bin"
After the installation has completed, close Firefox and type at the prompt:
su cd /usr/lib/mozilla/plugins/ ln -s /usr/java/jre1.6.0_26/lib/i386/libnpjp2.so
This creates a symlink from the java ‘i386′ directory to the Mozilla ‘plugins’ directory
To check Java SE is working with Mozilla Firefox enter the following text into the URL in Mozilla Firefox:
about:plugins
Finally to remove the Java SE installation (in case you want to update it), type at the prompt:
su -c "yum remove jre"
Then remove the broken symlink in the Mozilla Firebox ‘plugins’ directory. Choose the appropriate CPU architecture type :
For the x86_64 or amd64 architecture:
su -c "rm /usr/lib64/mozilla/plugins/libnpjp2.so"
Enter ‘y’ for yes in the terminal.
For the x86 or i386/i686 architecture:
su -c "rm /usr/lib/mozilla/plugins/libnpjp2.so"
Enter ‘y’ for yes in the terminal.
Thanks for visiting my site.