This howto will show you how to painlessly install the Sun Java broswer plugin. You should be aware of several potential risks before you start. 1. Centos uses gcj which is a free version of Java, but it is not Java. There are potential mix-match problems that can arise when compiling some applictions on development machines. 2. If your system is slow you may run into problems as Sun Java tends to be CPU and RAM intensive. 3. If you’re running an x86_64 system and compiling 32bit applications without the proper chrooted environment it will most likely not work. The main purpose for this howto is only for a 64 bit browser solution. If you need more in-depth instructions please see the howto here by Scott Glaser or the IcedTea howto by jmahowald on That said let’s get started.

Applicable to Centos Versions:

  • Centos 5.x


Explanation of requirements.

  1. Download the Sun Java 64 bit RPM file here:
  2. Download this file: Linux RPM .bin (self-extracting file)

Doing the Work

Basic description of what will be done and what is expected.

  1. Once the file has been downloaded, navigate to the directory in the terminal as root and run the following command:
  2. Once the RPM is installed run this command as root and any user on the system should be able to take advantage of Sun Java in Firefox:
  3. Next close and restart Firefox:


How to test

Explanation troubleshooting basics and expectations.

  1. Is the RPM installed?:
  2. Make sure you’ve linked the library correctly:

More Information

Any additional information or notes.


We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #fedora on

Added Reading

Last Modified: 9 Nov, 2010 at 01:26:15