Date: Thu, 11 Jan 2007 16:54:44 +1100 (EST) From: Ian Smith <smithi@nimnet.asn.au> To: eoghan <eoghanj@gmail.com> Cc: Garrett Cooper <youshi10@u.washington.edu>, freebsd-questions@freebsd.org Subject: Re: java plugin for firefox Message-ID: <Pine.BSF.3.96.1070111161516.24102A-100000@gaia.nimnet.asn.au> In-Reply-To: <20070110234838.2FDC916A57A@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Re: freebsd-questions Digest, Vol 160, Issue 12 > Message: 28 > Date: Wed, 10 Jan 2007 23:10:00 +0000 > From: eoghan <eoghanj@gmail.com> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.1070111161516.24102A-100000>