java are not reconize by firefox 3.6

Bug #511151 reported by starslights
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello,

I run kubuntu karmic 9.10 on x86 64 and from yesterday with the last update of firefox from daily update (FF 3.6 ) java and icetea are not recognize by the browser. If i try to install it, it said that is already installed.

Firefox: 3.6.1 hg20100122r33533+noinonly-0ubuntu1~umd~karmic

Linux moon 2.6.31-18-generic #55-Ubuntu SMP Fri Jan 8 14:54:52 UTC 2010 x86_64 GNU/Linux

ProblemType: Bug
Architecture: amd64
Date: Fri Jan 22 12:57:28 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
Package: sun-java6-jre 6-15-1
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 LANG=fr_CH.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-18.55-generic
SourcePackage: sun-java6
Uname: Linux 2.6.31-18-generic x86_64

Revision history for this message
starslights (starslights) wrote :
Revision history for this message
Harry (harry33) wrote :

This happens is because the correct symbolic link is missing from the folder /usr/lib/mozilla/plugins.
There should be a symbolic link named "libjavaplugin.so".
This usually points to another symbolic link named "moxilla-plugin.so" in the folder /etc/alternatives.
This symbolic link (mozilla-plugin.so) is then pointing to the java shared object "libnpjp2.so".
The shared object is in the folder "/usr/lib/jvm/java-6-sun/jre/lib/amd64".

Revision history for this message
Harry (harry33) wrote :

A few corrections/additions to the message above.
1) The symbolic link in the folder "/etc/alternatives" is named "mozilla-javaplugin.so".
2) The folder "/usr/lib/jvm/java-6-sun" is a symbolic link to the actual java-sun folder like "/usr/lib/jvm/java-6-sun-1.6.0.16/"
     So actually the shared object "libnpjp2.so" is located in the folder "/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/amd64".
3) There is also a symbolic link "libjavaplugin.so" in the folder "/usr/lib/xulrunner-addons/plugins" pointing to another symbolic link
     "xulrunner-javaplugin.so".

As a workaround to this bug (if the package sun-java6-plugin is installed) one should create two symbolic links:
1) /etc/alternatives/mozilla-javaplugin.so pointing to /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so and
2) /usr/lib/mozilla/plugins/libjavaplugin.so pointing to /etc/alternatives/mozilla-javaplugin.so.

I have tested this with Lucid Lynx 64-bit with the browser firefox 3.6.1pre from the Mozilla daily build team PPA.
This makes java plugin actually be recognized and work OK.

Revision history for this message
Ari (ari-reads) wrote :

Harry's solution worked for me. To make it easier, these are the commands that did the trick for me (use at your own risk!)

sudo rm /etc/alternatives/mozilla-javaplugin.so

sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so /etc/alternatives/mozilla-javaplugin.so

sudo rm /usr/lib/mozilla/plugins/libjavaplugin.so

sudo ln -s /etc/alternatives/mozilla-javaplugin.so /usr/lib/mozilla/plugins/libjavaplugin.so

Revision history for this message
starslights (starslights) wrote :

well it don't work for me while it seem miss files:

:~$ sudo rm /etc/alternatives/mozilla-javaplugin.so

~$ sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
:~$ /etc/alternatives/mozilla-javaplugin.so
bash: /etc/alternatives/mozilla-javaplugin.so: Aucun fichier ou dossier de ce type
~$ sudo rm /usr/lib/mozilla/plugins/libjavaplugin.so
~$ sudo ln -s /etc/alternatives/mozilla-javaplugin.so
~$ /usr/lib/mozilla/plugins/libjavaplugin.so
bash: /usr/lib/mozilla/plugins/libjavaplugin.so: Aucun fichier ou dossier de ce type

Revision history for this message
Harry (harry33) wrote :

Starligths,
there are errors in your commands.
You actually broke commands into two pieces.

This is one command (put it in one line):

sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so /etc/alternatives/mozilla-javaplugin.so

And this one is also one command (to be put in one line):

sudo ln -s /etc/alternatives/mozilla-javaplugin.so /usr/lib/mozilla/plugins/libjavaplugin.so

Those commands will create the symbolic links needed. Better to copy-paste them in console.

Revision history for this message
starslights (starslights) wrote :

Hi Harry,

Yes, i must open in new terminal while without it don't paste "sudo", now the both link exist but still java not working

Revision history for this message
Harry (harry33) wrote :

Starslights,
you wrote you are using Karmic Kubuntu (9.10) with FF 3.6 but with java and icedtea.
You should only use sun-java6-jre and sun-java6-plugin but not OpenJDK and icedtea6-plugin.
Instructions I gave are only for sun-java.
Check also you have all symlinks I wrote in #3.

Revision history for this message
starslights (starslights) wrote :

Hello Harry,

Thanks very much for your help, in fact it's the terminal who broke my command, i have all write my own and it worked.

If i copy paste , it broke the end of the command and put the symlink on the wrong places.

Have a great day and thanks for all again :D

Best Regards

Revision history for this message
starslights (starslights) wrote :

Well another very interesting thing are that with your simlink, it fix a old bug i has who was impossible to open "java applet" with apparmor, now it's the first time on Karmic that it worked.

But still a few pages where i can't see live java script on it.

Revision history for this message
Marcin (m-s-z) wrote :

The same problem on lucid amd64.

Revision history for this message
naught101 (naught101) wrote :

Same problem in i386, harry's solution in #3 works for me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.