Ubuntu – Java will not run in Chromium, Google Chrome and Firefox

11.10chromiumgoogle-chromejava

I am having major issues with Ubuntu and Kubuntu with regards to Java on websites using Chromium, Google Chrome or Firefox.

I have tried everything to install Java, but it's not happening. Ubuntu 10.10 is fine, but the new Unity will not run Java. Can anyone provide a step-by-step way to install Java?

  • Installing icedtea-plugin doesn't work

Best Answer

cd /usr/lib/chromium-browser/plugins
sudo ln -s /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libnpjp2.so libnpjp2.so

Restart chromium-browser.

Or if you have the latest 64-bit version (installed in /usr/lib/jvm/jre1.7.0/) use this as the second command:

sudo ln -s /usr/lib/jvm/jre1.7.0/lib/amd64/libnpjp2.so libnpjp2.so