Sunday, March 13, 2011

How to run Java applets in Google Chrome under Ubuntu

I found that Google Chrome doesn't auto-detect Java applets in Linux. Following commands will link the Java applet plugin to Chrome. Enter these in Terminal. Make sure you put the correct path for the JRE in /usr/lib/jvm/<jdk1.6.0_22>/jre/lib/i386/

sudo mkdir /opt/google/chrome/plugins
cd /opt/google/chrome/plugins
Now, link the plugin  libnpjp2 to /opt/google/chrome/plugins directory by running the following. Double check whether the JRE path is correct.
sudo ln -s /usr/lib/jvm/jdk1.6.0_22/jre/lib/i386/

Like to know whether this solution works in other Linux distros as well. Let us know in the comments.


  1. Finally I solve my google chrome browser problem.
    Now I can run java applet on my chrome browser. This write up is in depth and informative.

  2. Doesn't work with Redhat 2.6.32-71.el6.x86_64 and jre1.6.0_31.

  3. i don't find libnpjp2 in this path (using java-6-open-jdk)

  4. Yes. This works with Linux-mint 14 for java 64 version as well. Then the i386 folder should be replaced by amd64.

  5. interesting piece of information, I had come to know about your web-page from my friend pramod, jaipur,i have read atleast eight posts of yours by now, and let me tell you, your blog gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanks a million once again, Regards Guidewire training in hyderabad