The Open­JDK plug-in that comes with mod­ern dis­tros is usu­al­ly very good at han­dling Java in Web pages, but some applets are just stub­born. Thank­ful­ly, Sun have final­ly (after over six years!) released a plug-in for x86_64 Web browsers.

I man­aged to get the JDK ver­sion work­ing on Fedo­ra 11 and Cen­tOS 5.3. Here’s the process.

  1. First­ly, down­load the JRE or JDK from Sun. You’ll need to get ver­sion 1.6 Update 12 or above. I got the RPM ver­sion.
  2. Run the install script to extract the bun­dle. On the RPM ver­sion, this auto­mat­i­cal­ly installs it to your sys­tem if you run the script as root.
  3. Exe­cute this in a ter­mi­nal:
    # ln -s /usr/java/default/jre/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins

    This part took me a while to work out, as I was look­ing for a file called libjavaplugin_oji.so, the name of the x86_32 ver­sion.

  4. Restart Fire­fox and type about:plugins in the loca­tion bar to check if the new plug-in has been accept­ed.
  5. Enable the plug-in: Edit ? Pref­er­ences ? Con­tent tab ? tick Enable Java
  6. You can test your plug-in at java.com and javatester.org

%d bloggers like this: