Installing Chrome Java Plugin

I've been trying to install the Java plugin for Chrome for a couple hours now, and I figured it was time to ask people with more experience. I can't seem to get it working. My current Java version is the 64-bit OpenJDK 1.6.0_24. I tried installing the IcedTea plugin to no avail. I have Ubuntu 12.04 64-bit installed at the moment.

When I tried testing if java was enabled in Chrome, any website with a Java applet would not load (when I disabled the plugin, they loaded, but not the applet).

I followed the instructions from here: http://technonstop.com/install-java-plugin-ubuntu-linux

which said to create this script and run it:

JAVA_HOME=/usr/lib/jvm/jdk1.7.0
MOZILLA_HOME=~/.mozilla
mkdir $MOZILLA_HOME/plugins
ln -s $JAVA_HOME/jre/lib/i386/libnpjp2.so $MOZILLA_HOME/plugins

Note: You may need to change the value of JAVA_HOME so that it correctly points to your installation of the JDK. 64-bit users will need to change the final line to:

ln -s $JAVA_HOME/jre/lib/amd64/libnpjp2.so $MOZILLA_HOME/plugins

but this did not work as well.

I just test it in Firefox and it's working. Still nothing for Chrome


Alternate install Java for Chrome, can also install icedtea:

 sudo apt-get install icedtea-7-plugin

Then link icedtea in to chromium plugin folder thusly

cd /usr/lib/chromium-browser/plugins

and link

sudo ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so 

Java plug-in is not working anymore on Chrome (versions 45+). From here:

NPAPI support by Chrome

The Java plug-in for web browsers relies on the cross platform plugin architecture NPAPI, which has long been, and currently is, supported by all major web browsers. Google announced in September 2013 plans to remove NPAPI support from Chrome by "the end of 2014", thus effectively dropping support for Silverlight, Java, Facebook Video and other similar NPAPI based plugins. Recently, Google has revised their plans and now state that they plan to completely remove NPAPI by late 2015. As it is unclear if these dates will be further extended or not, we strongly recommend Java users consider alternatives to Chrome as soon as possible. Instead, we recommend Firefox, Internet Explorer and Safari as longer-term options.


Many answers are now dated. They did not work for my 14.04 Ubuntu install. For my instance of chrome is installed in /opt/google/chrome. So the plugin folder would have to be created in there.

Updated instructions can be found at https://www.java.com/en/download/help/enable_browser_ubuntu.xml

  1. Create a directory called plugins if you do not have it. Type: mkdir -p /opt/google/chrome/plugins

  2. Go to Google chrome plugins directory before you make the symbolic link. Type: cd /opt/google/chrome/plugins

  3. Create a symbolic link. Type: ln -s /usr/local/java/jre1.7.0/lib/amd64/libnpjp2.so

  4. Restart your browser and test Java

Update for Chrome 34+ users

Please see java plugin in Chromium. Basiclly IcedTea plugin no longer works with Chome ever since Google disabled the NPAPI interface by default.

Ultimately my solution will be to switch back to firefox.


I have recently hit by the same bug. If you look in your ~/.xsession-errors file, you possibly see:

/build/buildd/icedtea-web-1.2/build/../plugin/icedteanp/IcedTeaNPPlugin.cc:2072: thread 0x7f08d1365470: Error: Invalid plugin function table.

The bug report is Plugin fails to load in Chrome. A proposed update was released for the icedtea-6-plugin package and confirmed to work. This should land in a few days for all users.

Meanwhile, you can use a different browser as others suggested, Firefox works here.