Closed Bug 577670 Opened 14 years ago Closed 14 years ago

no sun java plugin available if icedtea installed

Categories

(Firefox :: Settings UI, defect)

3.6 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bogaczew, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.2.6) Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.6.6
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.2.6) Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.6.6

after installing both sun-java and icedtea there is only IcedTea plugin available in add-on menu. to use sun plugin you have to uninstall icedtea, see http://www.uluga.ubuntuforums.org/showthread.php?t=1517979 

Reproducible: Always

Steps to Reproduce:
1. install icedtea6-plugin
2. install sun-java6-plugin
3. open add-ons menu, only icedtea visible
4. deinstall icedtea6, open add-ons menu7, there is sun-java plugin
Actual Results:  
when both icedtea6 and sun-java6 plugins are installed only one of them is available to user

Expected Results:  
both plugins are avaialble in add-ons menu, user can choose which one he use
Version: unspecified → 3.6 Branch
Are both plugins symlinked into Firefox plugin directory or is the icetea installer is removing the sun symlink ?
Do you see both plugins under about:plugins ?

You can't choose which plugin do you want to use, that's a different bug but you should see both plugins in the addon manager/Plugins and disable one if you want to use the other one.
there was only one plugin in about:plugins. i don't think that icedtea is removing anything, as i first installed icedtea, then sun plugin, and sun plugin was not visible.
Can you look in the plugin folder ?
Are there 2 symlinks for both plugins or only one ?
OK, I installed icedtea6-plugin, sun-java disappeared from about:plugins and in /usr/lib/plugins there is no java at all

pawel@lambda:~$ ls -l /usr/lib/firefox/plugins/
razem 0
lrwxrwxrwx 1 root root 37 2010-07-06 18:09 flashplugin-alternative.so -> /etc/alternatives/firefox-flashplugin
pawel@lambda:~$

then I did apt-get purge icedtea6-plugin, refreshed about:plugins, and there is again sun java and no icedtea.

when You want me to look for plugins in diffrent directories name them. but i'm pretty sure that you should be abble to recreate this bug on your own ubuntu 10.04 64bit.
I'm a win32 user but have you looked under /usr/lib/mozilla/plugins ?
OK, i looked deeper, and now i know where is problem. it's in ubuntu's (debian?) 'alternatives' mechanism.

in /usr/lib/mozilla/plugins is libjavaplugin.so , which links to /etc/alternatives/mozilla-javaplugin.so .

pawel@lambda:~$ ls -l /usr/lib/mozilla/plugins/
razem 384
lrwxrwxrwx 1 root root     37 2010-07-06 18:09 flashplugin-alternative.so -> /etc/alternatives/mozilla-flashplugin
lrwxrwxrwx 1 root root     39 2010-07-15 23:31 libjavaplugin.so -> /etc/alternatives/mozilla-javaplugin.so
-rw-r--r-- 1 root root   6112 2010-06-25 13:33 librhythmbox-itms-detection-plugin.so
-rw-r--r-- 1 root root 105664 2010-05-19 17:29 libtotem-cone-plugin.so
-rw-r--r-- 1 root root 114464 2010-05-19 17:29 libtotem-gmp-plugin.so
-rw-r--r-- 1 root root  76976 2010-05-19 17:29 libtotem-mully-plugin.so
-rw-r--r-- 1 root root  85504 2010-05-19 17:29 libtotem-narrowspace-plugin.so
pawel@lambda:~$ 

to change which plugin should be used by firefox one have to use 'update-alternative' commnad. 

pawel@lambda:~$ update-alternatives --list mozilla-javaplugin.so
/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so
/usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
pawel@lambda:~$

usually, alternatives are updated by packet post-install scripts, i.e. when you have only openjdk installed command 'java' point to openjdk, and then when you install sun-java packet,  java is automaticly switched to sun's version. but it doesnt work wich java=plugin. when you install icedtead javaplugin point to icedtea, and after installing sun-java it still point to icedtea. i guess there is nothing youc can do about it, in mozilla, but i think you should describe it somewhere in FAQ , 'how to change java plugin in ubuntu? use update-alternatives --config mozilla-javaplugin.so'.  


pawel@lambda:~$ update-alternatives --config mozilla-javaplugin.so
Jest 2 dostępnych alternatyw dla mozilla-javaplugin.so (dostarczających /usr/lib/mozilla/plugins/libjavaplugin.so).

  Wybór       Ścieżka                                                   Priorytet  Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so   1061      tryb auto
  1            /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so   1061      tryb ręczny
  2            /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so            63        tryb ręczny

Naciśnij Enter, aby pozostawić bieżący wybór[*], albo wpisz wybrany numer:
pawel@lambda:~

maybe you can talk with ubuntu about fixing it, it affects your product after all. in ubuntu the default java plugin is icedtea, as 'open implementation', but sun's plugin works better. and when users install sun's plugin firefox doen't notice it.
I'm just a user like you and you can eplain the issue better to them.
Please report that to ubuntu under https://bugs.launchpad.net/ubuntu but search for existing reports because it could be already reported.
You can link to this bug if you want.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.