Sometimes we find that java applet is not working on our browser even if we have java installed on our machine.
So, let us see how to enable java applet in the browser like firefox or chrome in linux(Ubuntu).
For this we need to have the java applet plugin “libnpjp2.so” for the browser.
Let us see how to add the plugin:
Close the browser first to be sure, but it worked for me without closing.
1. Find the “libnpjp2.so” plugin in your java installation. For me the plugin is located in “/home/manohar/java/jre/lib/i386/libnpjp2.so” where “/home/manohar/java/” is my java installation directory.
- Go to your home directory using the command :
Give the command to find where the plugins are located :
locate *.so | grep chrome
locate *.so | grep mozilla
Change to the directory where the most of the plugins are located. In my machine, it is “/opt/google/chrome/” for chrome and “/usr/lib/mozilla/plugins/” for firefox. So give the following command :
See if old plugin exists, if so, remove the old plugin with :
Create a link to “libnpjp2.so” plugin by giving the command :
sudo ln -s /home/manohar/java/jre/lib/i386/libnpjp2.so
Now start the browser and you can see the java applet working. Or you might have to click “Run this time” button which popped just below the address bar to enable the plugin on that page.
Hope this helps and works for you all and saves you the day. Please share your experience through the comments and if it works for other flavors of linux (I did in Ubuntu). This site helped me.