Java browser plug-in does not work

Bug #424971 reported by dobey on 2009-09-05
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)

Bug Description

I'm running the latest Karmic, and have come across a web site which requires the java plug-in. As such, I installed sun-java6-plugin and restarted firefox. However, Java never appears in the about:plugins list in either firefox 3.0 or 3.5, on 2 separate machines. The version check also fails, and pages that use the plug-in show the "Install additional plug-ins" bar at the top of firefox.

dobey (dobey) wrote :

ld and nm output the following about undefined symbols:

[dobey@lunatari:dpkg]: ld /usr/lib/xulrunner-addons/plugins/
ld: warning: cannot find entry symbol _start; not setting start address
/usr/lib/xulrunner-addons/plugins/ undefined reference to `operator new[](unsigned int)'
/usr/lib/xulrunner-addons/plugins/ undefined reference to `operator delete[](void*)'
/usr/lib/xulrunner-addons/plugins/ undefined reference to `operator delete(void*)'
/usr/lib/xulrunner-addons/plugins/ undefined reference to `dlsym'
/usr/lib/xulrunner-addons/plugins/ undefined reference to `__gxx_personality_v0'
/usr/lib/xulrunner-addons/plugins/ undefined reference to `_Unwind_Resume'
/usr/lib/xulrunner-addons/plugins/ undefined reference to `dladdr'
/usr/lib/xulrunner-addons/plugins/ undefined reference to `operator new(unsigned int)'
/usr/lib/xulrunner-addons/plugins/ undefined reference to `dlopen'

[dobey@lunatari:dpkg]: nm -u /usr/lib/xulrunner-addons/plugins/
         w _Jv_RegisterClasses
         U _Unwind_Resume
         U _ZdaPv
         U _ZdlPv
         U _Znaj
         U _Znwj
         U __assert_fail@@GLIBC_2.0
         w __cxa_finalize@@GLIBC_2.1.3
         w __gmon_start__
         U __gxx_personality_v0
         U __xstat@@GLIBC_2.0
         U dladdr
         U dlopen
         U dlsym
         U free@@GLIBC_2.0
         U fwrite@@GLIBC_2.0
         U getenv@@GLIBC_2.0
         U memcpy@@GLIBC_2.0
         U printf@@GLIBC_2.0
         U snprintf@@GLIBC_2.0
         U sprintf@@GLIBC_2.0
         U strcpy@@GLIBC_2.0
         U strdup@@GLIBC_2.0
         U strlen@@GLIBC_2.0
         U strncpy@@GLIBC_2.0
         U strrchr@@GLIBC_2.0

dobey (dobey) wrote :

The plug-in also is not working on Jaunty. I have a machine running Jaunty still, as it has a Poulsbo video chipset, and it is not supported under Karmic. I also tried installing sun-java6-plugin on there, with the result being no java listed in about:plugins in Firefox there either.

However, on IRC, a couple of people have noted that it works for them, but they are using the 64-bit builds, while my machines are 32-bit.

kiroh (kiroh) wrote :

I am using karmic up to date, and I'm affected to.
I tried installing java JRE from java web page and from repositories.
I tried also sun-java6-plugin and iced tea, but none of them work.
Sorry for the bad english :s .

BjA (bja) wrote :

I'm was affected too and the solution was very simple. I added a symlink to /usr/lib/mozilla/plugins with the following shell command:

cd /usr/lib/mozilla/plugins/ && sudo ln -s /usr/lib/xulrunner-addons/plugins/


Same problem on Jaunty 32-bit.

sun-java6-plugin installs, Sun Java the default Java (in update-alternatives), but Firefox 3.6.8 about:plugins shows no plugin installed.

Unlike BjA, the fix for me was to symlink the separate in /usr/lib/firefox/plugins *and* /usr/lib/mozilla/plugins. In my build, only was there, correctly symlinked to the /usr/lib/jvm path.

Is this something that's broken with the recent upgrade of Firefox to 3.6 on older Ubuntu releases (such as Jaunty)??

ls -al /usr/lib/mozilla/plugins
[includes only /usr/lib/mozilla/plugins/ -> /etc/alternatives/]

ls -al /usr/lib/mozilla/plugins
[includes only /usr/lib/mozilla/plugins/ -> /etc/alternatives/]

cd /usr/lib/mozilla/plugins
sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/

cd /usr/lib/firefox/plugins
sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/

[Test Java plugin]

Could this also be related to Bug #291135 (since that was supposed to move from libjavaplugin.oji to the apparently newer Or, at the very least, it would seem that a fix for that should fix this, at least for the configuration I have.

Oops, sorry for multiple posts. To clarify, looks like the version is somehow broken (or has an incorrect name; I remember some forum post about similar issues where they'd had to rename to something else). I didn't need *both* the entries, only to replace with (just re-checked by removing the symlinks).

And, to be crystal clear, the original symlinks were indirect, via /etc/alternatives/ and /etc/alternatives/ (just in case anyone else is trying to reproduce my 'fix').

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

Other bug subscribers