On 06/07/2012 12:16 AM, Jens Hatlak wrote:
> Craig wrote:
>> I read the bug, saw the command
>>
>> $ java -version
>>
>> so I tried it. My results are,
>>
>> $ java -version
>> java version "1.6.0_22"
>> OpenJDK Runtime Environment (IcedTea6 1.10.6)
>> (rhel-1.25.1.10.6.el5_8-x86_64)
>> OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
>>
>>
>> Which is really odd, since
>>
>> $ lo /usr/java
>> total 4
>> lrwxrwxrwx 1 root 16 Dec 27 2010 default -> /usr/java/latest
>> drwxr-xr-x 6 root 4096 Jun 6 21:22 jre1.7.0_04
>> lrwxrwxrwx 1 root 21 Jun 6 21:22 latest -> /usr/java/jre1.7.0_04
>>
>>
>> and
>>
>> $ rpm -qva | grep -i jre
>> jre-1.7.0_04-fcs
>
> It doesn't really matter what you have under /usr/java, only what is
> listed first in $PATH. On Debian for example, the default java is under
> /usr/bin and that is a symlink to /etc/alternatives/java, which in turn
> is a symlink to what the system or user chose as the default (can be
> changed using the update-alternatives tool).
>
>> But the question remains, why does Firefox work and Seamonkey does not.
>
> I could imagine that the JRE developers added a check specifically for
> Firefox. It wouldn't be the first time that something like this happened.
>
> FWIW, I see the same issue on Debian and didn't yet find a way to fix it
> either. :-(
>
> HTH
>
> Jens
>
@Craig: I won't have fedora or openSUSE back up until later today. I'll
try to test then.
@Jens: I did a bit of experimenting this morning and discovered
(Ubuntu/Debian) that Mozilla Firefox (not the distro version) uses
mozilla-javaplugin.so only, whereas SeaMonkey (not the distro version)
does not & requires the system java also to be java-6-openjdk.
For example if I set my system jre to 1.7.0_04:
$ java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
And set my mozilla-javaplugin.so to the same
$ ls -al /etc/alternatives/mozilla-javaplugin.so
lrwxrwxrwx 1 root root 45 2012-06-07 11:59
/etc/alternatives/mozilla-javaplugin.so ->
/opt/java/32/jre1.7.0_04/lib/i386/libnpjp2.so
Firefox (13) picks up & accepts 1.7.0_04, SeaMonkey does not.
If I then set *only* mozilla-javaplugin.so to java-6-openjdk (leaving
the system version set to 1.7.0_04):
$ sudo update-alternatives --config mozilla-javaplugin.so
There are 2 choices for the alternative mozilla-javaplugin.so (providing
/usr/lib/mozilla/plugins/libjavaplugin.so).
Selection Path
Priority Status
------------------------------------------------------------
* 0 /opt/java/32/jre1.7.0_04/lib/i386/libnpjp2.so
2000 auto mode
1 /opt/java/32/jre1.7.0_04/lib/i386/libnpjp2.so
2000 manual mode
2 /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so
1061 manual mode
Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so to provide
/usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in
manual mode.
Firefox 13 recognizes the change immediately and now uses java-6-openjdk
(again leaving the system version set to 1.7.0_04) - SeaMonkey does not.
SeaMonkey *only* accepts java-6-openjdk if I set the system *and* the
mozilla-javaplugin.so to java-6-openjdk:
====
$ sudo update-alternatives --config java
There are 4 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /opt/java/32/jre1.7.0_04/bin/java 2000 auto
mode
1 /opt/java/32/jre1.7.0_04/bin/java 2000
manual mode
2 /usr/bin/gij-4.4 1044
manual mode
3 /usr/bin/gij-4.5 1045
manual mode
4 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061
manual mode
Press enter to keep the current choice[*], or type selection number: 4
update-alternatives: using /usr/lib/jvm/java-6-openjdk/jre/bin/java to
provide /usr/bin/java (java) in manual mode.
====
$ ls -al /etc/alternatives/mozilla-javaplugin.so
lrwxrwxrwx 1 root root 57 2012-06-07 12:03
/etc/alternatives/mozilla-javaplugin.so ->
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so
about:plugins (SeaMonkey):
IcedTea-Web Plugin (using IcedTea-Web 1.1.1 (1.1.1-0ubuntu1~11.04.2))
File: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so
Note: you do not have to shutdown & restart SeaMonkey to test; just
clear all your caches & reload the about:plugins page.
So something is definately odd when Firefox ignores the system java/jre
and relies only on the mozilla-javaplugin.so symlink. But SeaMonkey
requires both (system and mozilla-javaplugin.so).
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey