openjdk and icedtea plugin won't run on chromium, chrome and midori

Bug #594791 reported by Giri
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

i'm using openjdk-6-jre with icedtea plugin and midori, chrome, chromium failed to run java applet, but with sunjava it's okay.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: openjdk-6-jre 6b18-1.8-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Wed Jun 16 02:18:23 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: openjdk-6

Revision history for this message
Giri (bamf) wrote :
Revision history for this message
Steve Beattie (sbeattie) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

security vulnerability: yes → no
visibility: private → public
Revision history for this message
ruario (e-launchpad-ruari-com) wrote :
Download full text (8.9 KiB)

I have exactly the same problem with Opera 10.60 Beta (the IcedTea plugin not working) and there seems to be three problems here:

1. The IcedTea plugin depends on some Mozilla components, meaning that you won't have a working Java plugin without these installed, which makes little sense if you don't intend to use Firefox as your browser.
2. The way that the packaging is setup even if you have the 'correct' packages installed your other browsers won't find the libs that they need because they are buried in Firefox and/or xulrunner sub directories.
3. libsqlite is not packaged correctly either.

This is a major issue for anyone running a browser other than FF on Lucid who wants working Java since Sun/Oracle's Java was removed from all of the Lucid repositories. From my personal perspective Java plugin support is broken in Lucid. :(

---
ruario@lucid-desktop:~$ sudo apt-get install icedtea6-plugin
[snip icedtea6-plugin install]
ruario@lucid-desktop:~$ ldd /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so
 linux-gate.so.1 => (0x006a7000)
 libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00d15000)
 libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00110000)
 libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x009cf000)
 libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00bd7000)
 libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x004e5000)
 libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x0050c000)
 libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x0065a000)
 libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00526000)
 libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x005a0000)
 libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x006a8000)
 libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x006eb000)
 libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00c3b000)
 libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00877000)
 libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00af1000)
 libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x0063e000)
 librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00ba1000)
 libxul.so => not found
 libxpcom.so => not found
 libplds4.so => /usr/lib/libplds4.so (0x00644000)
 libplc4.so => /usr/lib/libplc4.so (0x00648000)
 libnspr4.so => /usr/lib/libnspr4.so (0x00a89000)
 libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00666000)
 libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00a7a000)
 libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x008b6000)
 libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x0082d000)
 libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0067f000)
 libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00e5b000)
 libpcre.so.3 => /lib/libpcre.so.3 (0x00761000)
 libXext.so.6 => /usr/lib/libXext.so.6 (0x00792000)
 libXrender.so.1 => /usr/lib/libXrender.so.1 (0x0064d000)
 libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x0069e000)
 libXi.so.6 => /usr/lib/libXi.so.6 (0x00ae0000)
 libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x007a2000)
 libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x007aa000)
 libX11.so.6 => /usr/lib/libX11.so.6 (0x00fb5000)
 libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x006a2000)
 libXdamage.so.1 => /usr/lib/libXdamage.so....

Read more...

Revision history for this message
ruario (e-launchpad-ruari-com) wrote :

Ok, it seems from this blog post that you can add Oracle Java from Lucid repository:

http://www.chromedocs.net/2010/06/or-how-i-learned-to-stop-reading-bug.html

However, I still think that many new and less experienced users will be very confused by this and wrongly interpret as some failing of Opera and Chrome.

Revision history for this message
Giri (bamf) wrote :

thank you very much for the hints. it's perfectly working on both chromium and midori. i hope they will fix it before UNE shipped with chromium as default browser so that new users didn't have to face this kind of problems.

Revision history for this message
Matthias Klose (doko) wrote :

> 3. libsqlite is not packaged correctly either.

is there more reason/evidence than the claim?

Revision history for this message
ruario (e-launchpad-ruari-com) wrote :

> > 3. libsqlite is not packaged correctly either.
> >
> is there more reason/evidence than the claim?

From my original comment, the fact that I need to do this:

$ sudo ln -s /usr/lib/libsqlite3.so.0 /usr/lib/libsqlite3.so

Revision history for this message
Matthias Klose (doko) wrote :

No, what you are doing is plain wrong. if the symlink is needed, install the libsqlite0-dev package. but in the first place the browser you are using is wrong and should not rely on using the .so symlink. Please file a bug report for the browser.

Revision history for this message
Matthias Klose (doko) wrote :

works with chromium-browser in lucid (5.0.342.9~r43360-0ubuntu2)
and icedtea 6b18-1.8-4ubuntu3

Changed in openjdk-6 (Ubuntu):
status: New → Fix Released
Revision history for this message
ruario (e-launchpad-ruari-com) wrote :

> No, what you are doing is plain wrong. if the symlink is needed, install the libsqlite0-dev package. but in the first place the browser you are using is wrong and should not rely on using the .so symlink. Please file a bug report for the browser.

Actually you have just misunderstood me. I *never* said that Opera needed that symlink. icedtea6-plugin needs or perhaps needed (following this update which I have yet to test) that symlink.

Basically I ran 'ldd /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so' noted two 'not found' entries (libxul.so and libxpcom.so), setup symlinks and ran ldd again, got new 'not found' entries, symlinked those and so on, untill all the dependencies of 'IcedTeaPlugin.so' where satisfied. One of the symlinks *for IcedTeaPlugin.so* was '/usr/lib/libsqlite3.so.0'. This may be fixed now and if so then great but it was never a (chrome, midori or opera) browser issue. With the symlinks in place all browsers worked.

I'll try to test soon. The only reason I have not yet is that Ubuntu is not my primary distro.

P.S. Thanks for getting this fixed.

Revision history for this message
ruario (e-launchpad-ruari-com) wrote :

Ok, for the record, I removed my workaround and updated my Ubuntu install. ldd'ing IcedTeaPlugin.so now results in no 'not found' lines and all of the installed browsers work with Java without any extra configuration. So yes, this is fixed for me as well.

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.