update-alternatives doesn't update java plugin

Bug #66621 reported by Onkar Shinde
4
Affects Status Importance Assigned to Milestone
java-gcj-compat (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: dpkg

I had Sun Java (from multiverse) installed in Dapper. After I upgraded to Edgy I removed it and installed GCJ/GIJ packages. I have installed java-gcj-compat-plugin package to install java plugin from browser.

When I ran command 'sudo update-alternatives --config firefox-javaplugin.so' I got two options:

There are 2 alternatives which provide `firefox-javaplugin.so'.

  Selection Alternative
-----------------------------------------------
 + 1 /usr/lib/jvm/java-gcj/jre/lib/libgcjwebplugin.so
          2 /usr/lib/gcj-4.1/libgcjwebplugin.so

Press enter to keep the default[*], or type selection number:

I selected default.

Even after this /etc/alternatives/firefox-javaplugin.so still points to /usr/lib/jvm/java-1.5.0-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so which does not exist.

I think I will have to manually modify this soft link to use gcj plugin.

Revision history for this message
Ian Jackson (ijackson) wrote :

I doubt this is actually a bug in update-alternatives.

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

can't reproduce, what does

  update-alternatives --display firefox-javaplugin.so

show?

  ls -l /usr/lib/firefox/plugins

Changed in java-gcj-compat:
status: Unconfirmed → Needs Info
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

1. update-alternatives --display firefox-javaplugin.so

firefox-javaplugin.so - status is manual.
 link currently points to /usr/lib/jvm/java-1.5.0-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/jvm/java-gcj/jre/lib/libgcjwebplugin.so - priority 1041
/usr/lib/gcj-4.1/libgcjwebplugin.so - priority 41
Current `best' version is /usr/lib/jvm/java-gcj/jre/lib/libgcjwebplugin.so.

2. ls -l /usr/lib/firefox/plugins

total 12
lrwxrwxrwx 1 root root 36 2006-10-03 09:34 libtotem-basic-plugin.so -> ../../totem/libtotem-basic-plugin.so
lrwxrwxrwx 1 root root 37 2006-10-03 09:34 libtotem-basic-plugin.xpt -> ../../totem/libtotem-basic-plugin.xpt
lrwxrwxrwx 1 root root 38 2006-10-03 09:34 libtotem-complex-plugin.so -> ../../totem/libtotem-complex-plugin.so
lrwxrwxrwx 1 root root 39 2006-10-03 09:34 libtotem-complex-plugin.xpt -> ../../totem/libtotem-complex-plugin.xpt
lrwxrwxrwx 1 root root 34 2006-10-03 09:34 libtotem-gmp-plugin.so -> ../../totem/libtotem-gmp-plugin.so
lrwxrwxrwx 1 root root 35 2006-10-03 09:34 libtotem-gmp-plugin.xpt -> ../../totem/libtotem-gmp-plugin.xpt
lrwxrwxrwx 1 root root 36 2006-10-03 09:34 libtotem-mully-plugin.so -> ../../totem/libtotem-mully-plugin.so
lrwxrwxrwx 1 root root 37 2006-10-03 09:34 libtotem-mully-plugin.xpt -> ../../totem/libtotem-mully-plugin.xpt
lrwxrwxrwx 1 root root 42 2006-10-03 09:34 libtotem-narrowspace-plugin.so -> ../../totem/libtotem-narrowspace-plugin.so
lrwxrwxrwx 1 root root 43 2006-10-03 09:34 libtotem-narrowspace-plugin.xpt -> ../../totem/libtotem-narrowspace-plugin.xpt
-rw-r--r-- 1 root root 9044 2006-10-16 02:50 libunixprintplugin.so

Revision history for this message
Matthias Klose (doko) wrote : Re: [Bug 66621] Re: update-alternatives doesn't update java plugin

cannot reproduce that, with all the alternatives below installed.

Onkar Shinde schrieb:
> 1. update-alternatives --display firefox-javaplugin.so
>
> firefox-javaplugin.so - status is manual.
> link currently points to /usr/lib/jvm/java-1.5.0-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so
> /usr/lib/jvm/java-gcj/jre/lib/libgcjwebplugin.so - priority 1041
> /usr/lib/gcj-4.1/libgcjwebplugin.so - priority 41
> Current `best' version is /usr/lib/jvm/java-gcj/jre/lib/libgcjwebplugin.so.
>
> 2. ls -l /usr/lib/firefox/plugins
>
> total 12
> lrwxrwxrwx 1 root root 36 2006-10-03 09:34 libtotem-basic-plugin.so -> ../../totem/libtotem-basic-plugin.so
> lrwxrwxrwx 1 root root 37 2006-10-03 09:34 libtotem-basic-plugin.xpt -> ../../totem/libtotem-basic-plugin.xpt
> lrwxrwxrwx 1 root root 38 2006-10-03 09:34 libtotem-complex-plugin.so -> ../../totem/libtotem-complex-plugin.so
> lrwxrwxrwx 1 root root 39 2006-10-03 09:34 libtotem-complex-plugin.xpt -> ../../totem/libtotem-complex-plugin.xpt
> lrwxrwxrwx 1 root root 34 2006-10-03 09:34 libtotem-gmp-plugin.so -> ../../totem/libtotem-gmp-plugin.so
> lrwxrwxrwx 1 root root 35 2006-10-03 09:34 libtotem-gmp-plugin.xpt -> ../../totem/libtotem-gmp-plugin.xpt
> lrwxrwxrwx 1 root root 36 2006-10-03 09:34 libtotem-mully-plugin.so -> ../../totem/libtotem-mully-plugin.so
> lrwxrwxrwx 1 root root 37 2006-10-03 09:34 libtotem-mully-plugin.xpt -> ../../totem/libtotem-mully-plugin.xpt
> lrwxrwxrwx 1 root root 42 2006-10-03 09:34 libtotem-narrowspace-plugin.so -> ../../totem/libtotem-narrowspace-plugin.so
> lrwxrwxrwx 1 root root 43 2006-10-03 09:34 libtotem-narrowspace-plugin.xpt -> ../../totem/libtotem-narrowspace-plugin.xpt
> -rw-r--r-- 1 root root 9044 2006-10-16 02:50 libunixprintplugin.so

that looks strange; what's missing here is

lrwxrwxrwx 1 root root 39 2006-10-23 18:33 libjavaplugin.so ->
/etc/alternatives/firefox-javaplugin.so

does the link exists after configuring it again?

  update-alternatives --config firefox-javaplugin.so

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

No the link doesn't exist even after configuring it again.

Here is what I did:
sudo update-alternatives --config firefox-javaplugin.so
Password:

There are 2 alternatives which provide `firefox-javaplugin.so'.

  Selection Alternative
-----------------------------------------------
 + 1 /usr/lib/jvm/java-gcj/jre/lib/libgcjwebplugin.so
          2 /usr/lib/gcj-4.1/libgcjwebplugin.so

Press enter to keep the default[*], or type selection number: 1
Using `/usr/lib/jvm/java-gcj/jre/lib/libgcjwebplugin.so' to provide `firefox-javaplugin.so'.

Even after this the link is not created.

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

no further ideas. does

  apt-get --reinstall java-gcj-compat-plugin gcjwebplugin-4.1

help?

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

The problem is solved but in a weird way.

1. sudo apt-get install --reinstall java-gcj-compat-plugin gcjwebplugin-4.1 didn't help. Appearantly no link is ever created in /usr/lib/firefox/plugins/

I checked the directory /uer/lib/mozilla/plugins and found a symlink libjavaplugin.so which was pointing to /etc/alternatives/mozilla-javaplugin.so

The link /etc/alternatives/mozilla-javaplugin.so was a broken symlink to my uninstalled sun jvm plugin from multiverse.

So I did 'sudo update-alternatives --config mozilla-javaplugin.so' and selected proper option.

After all this I can see the gcjwebplugin in firefox (about:plugins).

Also /etc/alternatives/firefox-javaplugin.so points to gcj web plugin. I guess it happened yesterday but I was too busy checking /usr/lib/firefox/plugins/
But it looks like it is not being used from anywhere, specifically from /usr/lib/firefox/plugins

So, I think we should remove firefox-javaplugin.so configuration and should only keep mozilla-javaplugin.so

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for java-gcj-compat (Ubuntu) because there has been no activity for 60 days.]

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.