From owner-freebsd-questions@FreeBSD.ORG Thu Jan 11 05:54:59 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 94EEE16A403 for ; Thu, 11 Jan 2007 05:54:59 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id E0B3313C458 for ; Thu, 11 Jan 2007 05:54:56 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.4) with SMTP id QAA27266; Thu, 11 Jan 2007 16:54:45 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 11 Jan 2007 16:54:44 +1100 (EST) From: Ian Smith To: eoghan In-Reply-To: <20070110234838.2FDC916A57A@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Garrett Cooper , freebsd-questions@freebsd.org Subject: Re: java plugin for firefox X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2007 05:54:59 -0000 > Re: freebsd-questions Digest, Vol 160, Issue 12 > Message: 28 > Date: Wed, 10 Jan 2007 23:10:00 +0000 > From: eoghan > On 10 Jan 2007, at 22:35, Garrett Cooper wrote: > > eoghan wrote: > >> Hi > >> Does anyone have a guide or advice for getting java plugin working > >> for > >> firefox? Im running 6.1 on amd. > >> I have installed: > >> diablo-jdk-5.0 > >> diablo-jre1.5.0 > >> linux-blackdown-jre1.1.8 > >> linux-sun-jdk1.4.2 > >> when i try to access a java app from firefox im always presented with > >> the plugin missing page... > >> I had it working on i386 before with just the installation of > >> java... Im > >> not sure what i have to do next... > >> Thanks > >> Eoghan > > > > Not sure why you're encountering the issue with Java and FF because it > > works perfectly fine for me. Do you have the linuxplugin-wrapper port > > installed by chance? Also, are the following files present in the > > following locations: > > > > [gcooper@sprsd /usr/local]$ for i in `find . -name > > libjavaplugin_oji.so`; do ls -l $i; done > > lrwxr-xr-x 1 root wheel 67 Dec 19 20:32 > > ./lib/browser_plugins/libjavaplugin_oji.so -> > > /usr/local/diablo-jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so > > - -rwxr-xr-x 1 root wheel 143280 Jun 13 2006 > > ./diablo-jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so > > > > - -Garrett > > Hi > Output is: > $ for i in `find . -name libjavaplugin_oji.so`;do ls -l $i;done > lrwxr-xr-x 1 root wheel 67 Jan 10 22:41 ./libjavaplugin_oji.so -> / > usr/local/diablo-jre1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so > I dont have that plugin installed... > Thanks > Eoghan It's not clear what directory '.' refers to there, but anyway .. Having installed the jre the other day, running into the same problem, perhaps the notes I made at the end of installing may be of some help. First caveats: this on 5.5-STABLE and using Mozilla not Firefox, but I doubt that either of those things matter. Yes moz was installed first. =========== [..] Running post-install for diablo-jre-1.5.0.07.01.. Attempting to record package into /var/db/pkg/diablo-jre-1.5.0.07.01.. Trying to record dependency on package 'xorg-libraries-6.9.0' with 'x11/xorg-libraries' origin. Trying to record dependency on package 'javavmwrapper-2.0_6' with 'java/javavmwrapper' origin. pkg_add: warning: package 'diablo-jre-1.5.0.07.01' requires 'javavmwrapper-2.0_6', but 'javavmwrapper-2.3' is installed Package diablo-jre-1.5.0.07.01 registered in /var/db/pkg/diablo-jre-1.5.0.07.01 ( to get the manuals, had to add to /etc/manpath.config: OPTIONAL_MANPATH /usr/local/diablo-jre1.5.0/man ) also see /var/db/pkg/diablo-jre-1.5.0.07.01/+INSTALL .. says it should have installed the plugin in /usr/X11R6/lib/browser_plugins but this dir doesn't exist .. so: paqi$ mkdir /usr/X11R6/lib/browser_plugins paqi# ln -sf /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so /usr/X11R6/lib/browser_plugins/libjavaplugin_oji.so paqi# ll /usr/X11R6/lib/browser_plugins total 0 lrwxr-xr-x 1 root wheel 63 Dec 27 17:39 libjavaplugin_oji.so -> /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so But still the plugin doesn't turn up in mozilla about:plugins :( Later .. worked it out from data on mozilla 'plugins for linux' page: paqi# pwd /usr/local/lib/mozilla/plugins paqi# ll total 20 -rwxr-xr-x 1 root wheel 18768 Nov 16 04:14 libnullplugin.so paqi# ln -s /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so paqi# ll total 20 -rwxr-xr-x 1 root wheel 18768 Nov 16 04:14 libnullplugin.so lrwxr-xr-x 1 root wheel 63 Dec 27 17:51 libjavaplugin_oji.so -> /usr/local/diablo-jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so .. and mozilla about:plugins happily sees it! =========== And modulo some funny font effects sometimes, its running fine. So find your firefox plugin directory (wherever libnullplugin.so lives) and put the link to the jre library there. Don't know about the jdk. Cheers, Ian