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

unfortunately, it does not work for me. I am sure its somehow the configuration on my side.
and I would appreciate some step by step help.
I updated my Fedora 14 to 15. I have a x64 laptop. Firefox is 4.0.1. I followed instruction, even with different version of Java, but it didn’t help.

weird thing is “alternatives –display libjavaplugin.so” does not return any thing.
Please help.

Try to install 64-bit version of JRE, because you have 64-bit version of Fedora. So download x64 package, not i586. I think this should solve your problem, but please let me know, if you get it installed or have any other problems.

I have fresh installed Fedora 14 with Firefox 3.6.10 and then installed jdk-6u26-linux-i586-rpm.bin in /usr/java dir. I have exactly issued alternatives –install commands for jdk 32-bits as in your guide.

I backed up the disk partition for Fedora 10 successfully using PING (Partimage Is Not Ghost). But PING can not backup the lvm2 partition for fedora 14. Can I backup Fedora 14 partition using Fedora 15 live CD or by any other disk partition backup utility?

And yes with alternatives system you can easily run multiple versions of Java, but with rpm package management you can install just one Java. So you can have all Java 6 versions installed from u1, u2…u30 and all Java 7 versions installed (u1,u2…), and then you could have same time have OpenJDK 6 and OpenJDK 7 installed and so on…no problem at all…

I hope this clarifies this issue and help you use Java 6 and Java 7 at the same time … :)

Another issue is that (with or without installing jdk 1.6), after I have completed jdk 1.7 installation /usr/bin/java pointing /usr/java/default/bin/java which causes swapping jdk version using “alternatives –config java” doesn’t give the correct result when “java -version”. The reason behind is because /usr/bin/java need to point to /etc/alternative/java.

Just the first I have to say that Java 7 installation do not have (at least currently) any problems, I have used exactly same method dozens of times. So if your /usr/bin/java is pointing to /usr/java/default/bin/java, then you have not followed my guide, because my guide does not even use /usr/java/default/bin/java anywhere?

Hi JR, thank you for this blog, I couldnt get mine to work too, and was about to post a question, when I saw your answer to Raul, I am running KDE PLASMA on Fedora 16. It is the firewall issue, where you suggested this command chcon -t execmem_exec_t ‘/usr/lib64/firefox-3.6/firefox’

only here is firefox 9 so needs to be changed to chcon -t execmem_exec_t ‘/usr/lib64/firefox/firefox’

And this was also the issue
*+ 1 /usr/java/jre1.6.0_22/lib/amd64/libnpjp2.so
2 /usr/java/jdk1.6.0_30/jre/lib/amd64/libnpjp2.so

[…] it said it would likely cause the browser to crash. I followed the last set of instructions from: http://www.if-not-true-then-false.co…-red-hat-rhel/ – all their other instructions have been very helpful this is the appended section in […]

I’m using Fedora 16 and trying to install the 32-bit JRE and 32-bit FireFox. I have a 64-bit machine. I need 32-bit Firefox/JRE, because I need to use a SSL VPN web app that only supports 32-bit.

I’ve got 32-bit firefox installed with no problems, and I followed your directions in installting 32-bit JRE (on my 64-bit machine). Everything seems to work – I see the plugins in firefox; however, when I run the java test at java.com, it doesn’t work. Any ideas what I may be doing wrong? Any way for me to diagnose this?

I tried this same style 32-bit Firefox & Java setup on 64-bit Fedora, but I have exactly same problem. Firefox shows Java plugin, but it won’t work. I also tested 32-bit Google Chrome and I can’t get 32-bit Java browser plugin work on 64-bit system with 32-bit browser.