From owner-freebsd-questions@FreeBSD.ORG Mon Feb 28 00:11:39 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 756BD16A4CE for ; Mon, 28 Feb 2005 00:11:39 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5B2943D2D for ; Mon, 28 Feb 2005 00:11:38 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j1S0BQ4A009430; Mon, 28 Feb 2005 00:11:27 GMT Message-ID: <422262E8.5000904@cis.strath.ac.uk> Date: Mon, 28 Feb 2005 00:16:40 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: BSD Mail References: <8be663db0502271554396202d8@mail.gmail.com> In-Reply-To: <8be663db0502271554396202d8@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 6) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: FreeBSD-questions@freebsd.org Subject: Re: JDK15 and JDK14 for Firefox and OpenOffice. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2005 00:11:39 -0000 BSD Mail wrote: > Greetings, I've installed /usr/ports/java/jdk15 then installed > /usr/ports/www/firefox > I'm not really sure why Firefox didn't detect that I have JDK15 > installed. Also Later I'm > going to install OpenOffice. In OO website > http://porting.openoffice.org/freebsd/ seems they > want to have JDK14. My question is the following: > > 1. If for some reason OpenOffice can't use JDK15 and it needs JDK14 > can I still keep JDK15 installed or that would cause a conflict ? The openoffice Makefile has this: .if !defined(WITHOUT_JAVA) USE_JAVA= yes JAVA_VERSION= 1.4+ JAVA_BUILD= jdk .endif You might want to change that to 1.5 and try again. I am just guessing though. > > 2. What am I missing with Firefox ? If JDK15 doesn't work with Firefox > I wil install JKD14, although I thought it should work and be detected > by the browser. Do I have to do any linking or specifying a path for > the plugin ? If so please elaborate. > > Thanks in advance. > Looks like the firefox Makefile hard-codes the path to the java plugin: JPI_LIST?=\ ${LOCALBASE}/jdk1.4.2/jre/plugin/${ARCH}/ns610/libjavaplugin_oji.so \ ${LOCALBASE}/jdk1.4.1/jre/plugin/${ARCH}/ns610/libjavaplugin_oji.so \ ${LOCALBASE}/diablo-jdk1.3.1/jre/plugin/${ARCH}/ns600/libjavaplugin_oji.so \ ${LOCALBASE}/jdk1.3.1/jre/plugin/${ARCH}/ns600/libjavaplugin_oji.so Perhaps you could add the jdk1.5 path to the very start of this list and try again? The work around would be to just create a softlink manually for 1.5. This is the 1.4.2 link: /usr/X11R6/lib/browser_plugins$ ls -l libjavaplugin_oji.so lrwxr-xr-x 1 root wheel 62 Jan 13 19:00 libjavaplugin_oji.so -> /usr/local/jdk1.4.2/jre/plugin/i386/ns610/libjavaplugin_oji.so Not sure if this is still true but I believe jdk15 is still in beta or if not, then it has only just been released fully. Chris