Java will not run in Chromium, Google Chrome and Firefox

379

Solution 1

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

Solution 2

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."

Solution 3

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 !

Solution 4

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.

Solution 5

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:
379

Related videos on Youtube

Jonas Stawski
Author by

Jonas Stawski

Updated on September 18, 2022

Comments

  • Jonas Stawski
    Jonas Stawski over 1 year

    so I have this linq syntax query:

    var parents = (from p in session.Query<Parent>()
                  from c in p.Children
                  where c.Name == "John"
                  select p).ToList()
    

    which results in a select statement like this (shortened for brevity):

    select p.*
    from Parents p
    inner join Children c
       on p.Id = c.ParentId
    where c.Name = 'John'
    

    the problem I'm having with this is that although is doing an inner join to children, it is not hydrating the collection, which i need hydrated.

    If I change the code to this:

    var parents = (from p in session.Query<Parent>()
                  from c in p.Children
                  where c.Name == "John"
                  select p).FetchMany(p => p.Children).ToList()
    

    the sql statement is created with a second join (left outer join) to the Children table. How do I tell nhibernate to hydrate the Parent entity with all the Children without creating another join?

    Thanks...

  • Jonas Stawski
    Jonas Stawski almost 13 years
    I forgot to mention that i'm filtering by the children's name, so i need to join beforehand, i edited the question
  • salv007x
    salv007x over 12 years
    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
    salv007x over 12 years
  • salv007x
    salv007x over 12 years
    lastly this: multimediaboom.com/…
  • NorTicUs
    NorTicUs over 11 years
    It's said in the question that installing that package is not working. And that doesn't solve Chrome and Firefox issue
  • JulioHM
    JulioHM over 11 years
    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.
  • Natim
    Natim about 11 years
    you can do sudo apt-get install openjre-7-jre icedtea-7-plugin
  • pst007x
    pst007x over 10 years
    This worked fine in Ubuntu 13.10 - Google Chrome V:32.0.1700.77 (Official Build 244503)