Getting Java Working in Chromium in Ubuntu Lucid Lynx
27 July 2010 4 Comments
I recently found myself needing to have the Java plug-in working on Ubuntu. I had been using Google Chrome, and thought that installing Chromium from the standard repositories would fix it – not so.
After some research, I found this article about getting Java working on Ubuntu 9.04 with Chromium. Strangely (or perhaps not) things have not changed in Ubuntu 10.04.
The simple description is the following:
- Find
libnpjp2 - Place a copy of
libnpjp2in Chromium’s plugins directory:/usr/lib/chromium-browser/plugins - Make sure that
libjavaplugin*is removed from the plugins directory. - Restart Chromium if necessary.
In the case of Ubuntu 10.04, I found libnpjp2 to be part of Sun’s JRE (and in the sun-java6-bin package):
dgd@cor$ dpkg -S $(locate libnpjp2)
sun-java6-bin: /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386/libnpjp2.so
You can test the results by going to Sun’s Test Page.
Looking at Ubuntu’s bug lists, this bug is related to getting IcedTea Java plugins working. The Google Chromium folks noticed this as well in a bug report of their own.
The problems with IcedTea are related to the fact that the plugin is either in a unsupported plugin format, or more recently, linked against libraries that are not found when running Google Chromium.
Sun’s JDK with libnpjp2.so works just fine; I’ll stick with that.


It did work! Thanks a lot!
thanks. useful post
but in keepvid.com it only shows “loading java applet”
what is the problem?
Your question is unhelpful and doesn’t give us enough information to even try and answer it. Read this venerable document from Eric Raymond on How to Ask Questions the Smart Way; once you’ve read it and done its recommendations, try asking us again.