On 06/07/2012 12:14 PM, NoOp wrote:
...

Craig (+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).
> 


Craig (+Jens),

I've just replicated the same in Fedora 17. First I installed openjdk &
tested with both Firefox(13) & SeaMonkey (2.10), and the result is
exactly the same as the above tests (works/works). I then did the same
with SeaMonkey 2.10, and the result is exactly the same as in the above
tests (fail/fail).

I then installed Sun Java JRE 1.7:

<http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/>

tested switch the java, and in this case, again, Firefox sword with
1.7.0_04, SeaMonkey did not. Switched them back to openJDK and
everything works in FireFox *and* SeaMonkey.

Note: I'me posting this from the Fedora 17 SeaMonkey:

Build identifier: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120429
Firefox/12.0 SeaMonkey/2.9.1

with openJDK:

IcedTea-Web Plugin (using IcedTea-Web 1.2 (fedora-2.fc17-i386))
    File: /usr/lib/IcedTeaPlugin.so

and tested with 'java.com':

Verified Java Version
Congratulations!
You have the recommended Java installed (1.7.0_b147-icedtea).

# uname -a
Linux Fedora17 3.4.0-1.fc17.i686 #1 SMP Sun Jun 3 07:16:04 UTC 2012 i686
i686 i386 GNU/Linux

$ java -version
java version "1.7.0_b147-icedtea"
OpenJDK Runtime Environment (fedora-2.1.fc17.6-i386)
OpenJDK Client VM (build 22.0-b10, mixed mode)

====
# alternatives --config libjavaplugin.so

There are 4 programs which provide 'libjavaplugin.so'.

  Selection    Command
-----------------------------------------------
 + 1           /usr/lib/IcedTeaPlugin.so
*  2           /usr/java/latest/jre/lib/i386/libnpjp2.so
   3           /usr/java/jre1.7.0_04/lib/i386/libnpjp2.so
   4           /usr/java/latest/lib/i386/libnpjp2.so

Enter to keep the current selection[+], or type selection number
====

====
# alternatives --config java

There are 3 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
 + 1           /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
*  2           /usr/java/jre1.7.0_04/bin/java
   3           /usr/java/latest/bin/java

Enter to keep the current selection[+], or type selection number:
====

So, yes... SeaMonkey (linux) is screwed, up not your install 1.7.0_4
install.
_______________________________________________
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to