Re: [Hampshire] Mozilla Firefox plugins directory - thanks

Top Page

Reply to this message
Author: Samuel Penn
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Mozilla Firefox plugins directory - thanks
On Wednesday 31 October 2007 22:27:13 Hugo Mills wrote:
> On Wed, Oct 31, 2007 at 10:58:50PM +0100, Samuel Penn wrote:
> > On Wednesday 31 October 2007 16:56:47 Hugo Mills wrote:
> > >    Is this a 64-bit machine, or 32? 64-bit systems still don't have a
> > > working Java plugin for FF, because the Sun JVM doesn't ship with one
> > > built.

> >
> > Yes they do. Java works just fine in FF and Konqueror on my AMD64
> > system. You can use the Blackdown JDK (1.4) if necessary, which is good
> > enough for most things. You can also use the nspluginwrapper to
> > use 32bit plugins on a 64bit browser.
>
> hrm@selene:java-1.5.0-sun $ pwd
> /usr/lib/jvm/java-1.5.0-sun
> hrm@selene:java-1.5.0-sun $ find -name \*oji\*
> hrm@selene:java-1.5.0-sun $
>
>    Doesn't seem to be the case here.


"Yes they do" was to your 64bit systems comment, not to what Sun ships.

sam@fenris ~ $ ls /opt/java32/plugin/i386/mozilla/
libjavaplugin_oji.so

I'm running Sun JDK 1.5 for applets, on Gentoo/AMD64. Gentoo does
have various emulation libraries for Java to allow multilib, as well
as nspluginwrapper which allows 32bit libraries to be used on 64bit
applications (hence, I also have flash and win32codecs working in
my 64bit browsers - whether the former is a good idea is left as an
exercise to the reader).

>    Regarding Blackdown, a 1.4 JDK isn't good enough for some of the
> things I need to run/test, and I'd rather not try to run multiple Java
> implementations on the same machine(*).


Well, Gentoo now[1] makes this easy:

sam@fenris ~ $ eselect java-vm list
Available Java Virtual Machines:
[1] blackdown-jdk-1.4.2
[2] emul-linux-x86-java-1.4.2
[3] emul-linux-x86-java-1.6
[4] sun-jdk-1.5 system-vm

At the very least, you should be able to manually install a random
JDK, and set JAVA_HOME/PATH as required for individual apps. These
instances will be invisible to the rest of the system.

[1] A bit of history: The 'build everything from source' approach caused 
    lots of problems for Gentoo when Java 1.5 came out, because Sun broke
    source code compatibility. To compile some libraries you needed 1.4,
    to compile others you needed 1.5. Gentoo was forced into restructuring
    how Java was treated to allow multiple different instances installed
    at once, and for different apps to be able to select which one they
    needed. It now actually works quite well.



-- 
Be seeing you,                         http://www.glendale.org.uk
Sam.                        Mail/IM (Jabber): sam@???