The OpenJDK plug-in that comes with modern distros is usually very good at handling Java in Web pages, but some applets are just stubborn. Thankfully, Sun have finally (after over six years!) released a plug-in for x86_64 Web browsers.
I managed to get the JDK version working on Fedora 11 and CentOS 5.3. Here’s the process.
- Firstly, download the JRE or JDK from Sun. You’ll need to get version 1.6 Update 12 or above. I got the RPM version.
- Run the install script to extract the bundle. On the RPM version, this automatically installs it to your system if you run the script as root.
- Execute this in a terminal:
# 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 looking for a file called libjavaplugin_oji.so, the name of the x86_32 version.
- Restart Firefox and type about:plugins in the location bar to check if the new plug-in has been accepted.
- Enable the plug-in: Edit ? Preferences ? Content tab ? tick Enable Java
- You can test your plug-in at java.com and javatester.org