Assuming that you have installed Java already, if not please visit JDK site..
First identify the the plugin, I used the find command :
find /usr -name libnpjp2.so
Depending upon on architecture and JDK version you may see files like:
Then change into the plugin the directory:
Create a symbolic link to the Java plugin:
First identify the the plugin, I used the find command :
find /usr -name libnpjp2.so
Depending upon on architecture and JDK version you may see files like:
/usr/java/jdk1.8.0_51/jre/lib/amd64/libnpjp2.so
/usr/java/jdk1.7.0_79/jre/lib/amd64/libnpjp2.so
/usr/java/jre1.8.0_60/lib/i386/libnpjp2.so
cd ~/.mozilla/plugins
Create a symbolic link to the Java plugin:
sudo ln -s /usr/java/jdk1.8.0_51/jre/lib/amd64/libnpjp2.so .
Then restart the firefox browser.