[ale] java frustrations

Jim Kinney jim.kinney at gmail.com
Wed Jan 26 23:39:53 EST 2011


On Wed, Jan 26, 2011 at 12:35 PM, Geoffrey Myers
<lists at serioustechnology.com> wrote:

> That was it, created the link to the directory I posted earlier, and I'm
> cooking now.  Thanks to everyone.

So you now have a java mess as the plugin is not registered through
the alternatives process. The next system update may cause grief if
the gnu java gets updated.

In my Fedora 14 /etc/alternatives:
libjavaplugin.so.x86_64 ->
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaPlugin.so

ls -l /usr/lib64/mozilla/plugins/
total 10352
-rw-r--r--. 1 root root 10597872 Oct  3 23:31 libflashplayer.so
lrwxrwxrwx. 1 root root       53 Nov  8 23:21 libjavaplugin_oji.so ->
/usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so
lrwxrwxrwx. 1 root root       41 Jan 25 19:56 libjavaplugin.so ->
/etc/alternatives/libjavaplugin.so.x86_64

I installed the "official" java jre rpm and it set up the new mess for me
rpm -q --whatprovides /usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so
jre-1.6.0_22-fcs.i586

rpm -qi jre
Name        : jre                          Relocations: /usr/java
Version     : 1.6.0_22                          Vendor: Oracle and/or
its affiliates.
Release     : fcs                           Build Date: Wed 15 Sep
2010 06:41:58 AM EDT
Install Date: Mon 08 Nov 2010 11:08:11 PM EST      Build Host: jdk-lin-1586
Group       : Development/Tools             Source RPM: jre-1.6.0_22-fcs.src.rpm
Size        : 51203887                         License: Copyright (c)
2010, Oracle and/or its affiliates. All rights reserved. Also under
other license(s) as shown at the Description field.
Signature   : (none)
Packager    : Java Software <jre-comments at java.sun.com>
URL         : http://java.sun.com/
Summary     : Java(TM) Platform Standard Edition Runtime Environment

Ah. But that's a 32 bit java (get it in _gear_ java makers! it's been
10 freaking years you can't make a 64-bit plugin! Even FLASH has a
64-bit plugin!) so I'm running nspluginwrapper (grr) because some of
the gcj plugin is flakey.

...BUT... even though it's wrapped properly :
ls -l /usr/lib64/mozilla/plugins-wrapped
total 396
lrwxrwxrwx. 1 root jkinney     47 Jan 25 19:50 libjavaplugin_oji.so ->
/usr/lib64/mozilla/plugins/libjavaplugin_oji.so
lrwxrwxrwx. 1 root jkinney     43 Jan 25 19:50 libjavaplugin.so ->
/usr/lib64/mozilla/plugins/libjavaplugin.so

(the _oji.so version in the "official" java plugin) my firefox
"about:plugins" shows

IcedTea NPR Web Browser Plugin (using IcedTea6 1.9.3
(fedora-49.1.9.3.fc14-x86_64))

because the /etc/alternatives version trumps the static link.

alternatives --display libjavaplugin.so.x86_64
libjavaplugin.so.x86_64 - status is auto.
 link currently points to
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaPlugin.so
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaPlugin.so -
priority 16000
Current `best' version is
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/lib/amd64/IcedTeaPlugin.so.

man alternatives is your friend here.

Yes, it's complicated. But it allows multiple java (and other things)
to be installed and a (bassakwards) way to keep track and choose the
default.


>
> Again, though.  It's no wonder some folks won't move to Linux. :(

keep them sheeple on winders so us linuxy-types can sneer down our
intellectual elitist noses at them :-)

-- 
--
James P. Kinney III
I would rather stumble along in freedom than walk effortlessly in chains.



More information about the Ale mailing list