Installing Chrome Java Plugin
Solution 1
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
Solution 2
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.
Solution 3
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
Create a directory called plugins if you do not have it. Type: mkdir -p /opt/google/chrome/plugins
Go to Google chrome plugins directory before you make the symbolic link. Type: cd /opt/google/chrome/plugins
Create a symbolic link. Type: ln -s /usr/local/java/jre1.7.0/lib/amd64/libnpjp2.so
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.
Solution 4
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.
Solution 5
The best solution I found, (none of these suggestions worked for me), is as followings: First install Icedtead pluging by:
- 1)
sudo apt-get install icedtea-7-plugin
Then in your chrome browser go to:
- 2) chrome-> Settings-> Show Advanced Settings-> Privacy then click on Content Settings -> Plug-ins then click on Disable Individual Plug-in
- 3) Disable both "IceTea-Web Plugin" and "Java(TM)"
- 4) Restart the browser.
- 5) chrome-> Settings-> Show Advanced Settings-> Privacy then click on Content Settings -> Plug-ins then click on Disable Individual Plug-in
- 6) Enable only "IceTea-Web Plugin"
- 7) Enjoy !
Related videos on Youtube
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
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
-
stdcerr over 10 yearsI don't have no /usr/lib/chromium-browser/plugins directory... nor can I seem to find the chrome plugins directory with
locate chrome | grep plugins
-
Augusto Goncalves over 10 years@cerr, I did this and it worked:
sudo mkdir -p /usr/lib/chromium-browser/plugins
(plugin successfully installed) -
stdcerr over 10 years@kajMagnus Thanks, I did that but no info is coming up when I go to java.com/en/download/testjava.jsp - sorry, yes, now it worked! I just had to restart my browser! Thanks!
-
Peter Flynn over 10 yearsSubstitute i386 for amd64 if you're using a 32-bit system
-
pdp about 10 yearsStill found it useful in 2014, with Debian 6.0.9 and Chrome 6.0. Thanks a lot!
-
Silver Moon about 10 yearsthat did not work on kubuntu 14.04
-
Peter Flynn almost 10 yearsI tried this (installed openjdk-7 and icedtea-7) but there is neither icedtea nor java plugins showing in chrome. How do I force Chrome to see them? I also installed Oracle Java7 and softlinked its libnpjp2.so into /opt/google/chrome/plugins but it makes no difference: it doesn't show up or work.
-
Ken Sharp almost 10 yearsDoesn't even show up in chrome://plugins
-
Jake Cobb over 9 years@SilverMoon Try using
/opt/google/chrome/plugins
instead, per this link -
Sandeep over 9 yearsI symlinked
IcedTeaPlugin.so
at both/usr/lib/chromium-browser/plugins
and/opt/google/chrome/plugins/
but Google Chrome still saysJava is not working
. This is Xubuntu 14.04. -
Waldir Leoncio over 9 yearsCan't make it work on Ubuntu 14.04. I've already created and symlinked
IcedTeaPlugin.so
at/usr/lib/chromium-browser/plugins
. -
EdwinW about 9 yearsDon't count on Firefox to continue working either. There are indications that they're considering removing the NSAPI interface as well, and for much the same reasons. Security.