Frank Frank - 6 months ago 13x
Java Question

How to add java plugin for Firefox on Linux?

I want to add java plugin for FireFox (v10.0.12) on Linux(Centos 5.6 64bit).

I have JDK 1.7.0_12 installed, and add a symbolic link to plugin folder under /usr/lib/mozilla to the file under (JRE)/lib/amd64/
Followd this

But I still couldn't find java plugin on my Firefox Add-ons Manager.

What might be the problem ?


Do you want the JDK or the JRE? Anyways, I had this problem too, a few weeks ago. I followed the instructions here and it worked:

NOTE: Before installing Java make sure you kill Firefox.

root@bt:~# killall -9 /opt/firefox/firefox-bin

You can download java from the official website. (Download tar.gz version)

We first create the directory and place java there:

root@bt:~# mkdir /opt/java

root@bt:~# mv -f jre1.7.0_05/ /opt/java/

Final changes.

root@bt:~# update-alternatives --install /usr/bin/java java /opt/java/jre1.7.0_05/bin/java 1

root@bt:~# update-alternatives --set java /opt/java/jre1.7.0_05/bin/java

root@bt:~# export JAVA_HOME="/opt/java/jre1.7.0_05"

Adding the plugin to Firefox.

For Java 7 (32 bit)

root@bt:~# ln -sf $JAVA_HOME/lib/i386/ /usr/lib/mozilla/plugins/

For Java 8 (64 bit)

root@bt:~# ln -sf $JAVA_HOME/jre/lib/amd64/ /usr/lib/mozilla/plugins/

Testing the plugin.

root@bt:~# firefox