Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 point by point way to install JAVA?

  • Installing icedtea-plugin doesn't work
share|improve this question
    
Java plugin don't work in x64 Ubuntu :( –  Extender Oct 8 '11 at 16:06
add comment

7 Answers 7

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
share|improve this answer
    
This worked for me, thanks! –  LEOPiC Jun 23 '12 at 0:08
1  
I just tried this, but it's not working as expected. I tried testing it here. The browser does recognize the plugin and asks if I want to enable it (only this time or trust the website). However, the area where the applet should appear remains greyed out, and the applet does not seem to be running. Using jre1.7.0_09 here. –  JulioHM Jan 10 '13 at 8:55
add comment
sudo apt-get install icedtea-plugin

This worked for me in Kubuntu 11.10 to get JAVA working on the computer; however, it still does not get JAVA to work in Chrome or Firefox.

share|improve this answer
    
It's said in the question that installing that package is not working. And that doesn't solve Chrome and Firefox issue –  NorTicUs Nov 7 '12 at 11:04
    
This worked fine in Ubuntu 13.10 - Google Chrome V:32.0.1700.77 (Official Build 244503) –  pst007x Jan 25 at 22:23
add comment
sudo apt-get install openjre-6-jre icedtea6-plugin

should be enough to pass the Java test here: http://java.com/en/download/testjava.jsp in Chromium. Firefox is a different issue.

However, I am still stuck on some other issues. openjdk-7-jre would be preferred, but there is no icedtea7 yet in Oneiric universe. So on the JDK side, when I use

sudo update-java-alternatives -s java-1.7.0-openjdk-amd64

I will get the error

"update-alternatives: error: no alternatives for -javaplugin.so."

share|improve this answer
    
you can do sudo apt-get install openjre-7-jre icedtea-7-plugin –  Natim Mar 22 '13 at 9:55
add comment

I had the same problem with the java plugin not working in chromium or firefox. I use the Oracle jdk's for java 6 and 7

Oddly enough, after playing around and not finding any solution that worked, i disabled the plugin in chromium, and the re-enabled it again - and the java plugin works, in both chromium AND firefox.

I did end up with chromium not shutting down properly, but after shutting down these processes, it started normally, and the java plugin still worked. Weird or what?

share|improve this answer
add comment

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 !
share|improve this answer
add comment

To get Java working in the browser

sudo apt-get install icedtea-plugin
share|improve this answer
    
Thanks, never worked.... –  salv007x Oct 7 '11 at 20:59
    
Thanks, I tried that first, but still no plugin... so.... I tried adding the Natty repository: deb archive.canonical.com/ubuntu maverick partner deb archive.canonical.com/ubuntu natty partner and looked for the SUN-JAVA6-PLUGIN. This seemed to have sorted it, though JAVA does not seem to run so well in Kubuntu... thanks though for your help –  salv007x Oct 7 '11 at 21:06
    
I found this: stackoverflow.com/questions/3747789/… –  salv007x Oct 7 '11 at 21:18
    
and this: archive.canonical.com/pool/partner/s/sun-java6 –  salv007x Oct 7 '11 at 21:19
    
lastly this: multimediaboom.com/… –  salv007x Oct 7 '11 at 21:21
add comment

Install Oracle (Sun) Java JRE by hand: http://sites.google.com/site/easylinuxtipsproject/java

Easy to do, just requires precision in applying the how-to. :-)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.