Thursday, July 21, 2011

Java Plugin for Firefox in Fedora 15 64-bit

Due to a personal preference, I still feel that the Oracle/SUN JRE is superior to OpenJDK.

It is a pain to enable Oracle/Sun JRE plugin for Firefox in Fedora 15; they just force you to do their OpenJDK and IcedTea for browser. For some sites, unfortunately, these FOSS variants just won't work .

To enable the "real" JRE support for FF, just create a symbolic link of the plugin lib from $JAVA_HOME to /usr/lib64/mozilla/plugins e.g. :

ln -s $JAVA_HOME/lib/amd64/default/libnpjp2.so /usr/lib64/mozilla/plugins

Ensure that your JAVA_HOME variable is defined.