From owner-freebsd-java@FreeBSD.ORG Sat Oct 29 02:27:24 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E77916A41F for ; Sat, 29 Oct 2005 02:27:24 +0000 (GMT) (envelope-from trs137@psu.edu) Received: from jefferson.arl.psu.edu (jefferson.arl.psu.edu [146.186.165.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B36D43D46 for ; Sat, 29 Oct 2005 02:27:24 +0000 (GMT) (envelope-from trs137@psu.edu) Received: from [172.28.224.140] (arl1406.arl.psu.edu [172.28.224.140]) by ponyexpress.arl.psu.edu (PMDF V6.0-025 #37504) with ESMTPA id <01LUQTS5Z5P88X2H5Q@ponyexpress.arl.psu.edu> for freebsd-java@freebsd.org; Fri, 28 Oct 2005 22:27:22 -0400 (EDT) Date: Fri, 28 Oct 2005 22:27:22 -0400 From: Ted Stodgell In-reply-to: <436280A5.6020805@vestnet.dk> To: Jens Augustenborg Message-id: <4362DE0A.7090005@psu.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) References: <436280A5.6020805@vestnet.dk> Cc: freebsd-java@freebsd.org Subject: Re: installing java.... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2005 02:27:24 -0000 Jens Augustenborg wrote: > How do I actually use the patch-files - the BUILD-file (from | > http://www.eyesbeyond.com > ) |is all greek to Ports doesn't automatically get the source and patches because the Sun Community Source License (SCSL) requires human interaction (i.e. you have to scroll thru a EULA and click "ok"). Since the automated nature of ports doesn't satisfy the SCSL, you have to manually fetch the required files. However, once you've acquired those files, ports handles everything (almost) automatically. Per the distinfo, you need 3 files: j2sdk-1_4_2-src-scsl.zip, j2sdk-1_4_2-bin-scsl.zip and bsd-jdk14-patches-7.tar.gz. 1. Point a web browser at http://wwws.sun.com/software/java2/download.html. Agree to Sun's community license agreement and download the following and put it all in /usr/ports/distfiles: j2sdk-1_4_2-bin-scsl.zip j2sdk-1_4_2-src-scsl.zip 2. Download bsd-jdk14-patches-7.tar.gz from eyesbeyond.com and put it in /usr/ports/distfiles too. 3. Now, read the makefile. It has some nice options you might be interested in. Ports makefiles can be pretty cool. If you already have a valid native jdk version 1.4.1 or newer, ports will use that JDK to build your new jdk. Otherwise, ports will depend on a Linux bootstrap jdk to build the native one, which means it will first build linux-sun-jdk14. Take note of linux-sun-jdk14/pkg-message! Assuming you're running a kernel with linux binary compat, all you need to do is add a linprocfs entry to /etc/fstab and kldload linprocfs. I'm not 100% sure, but the make process in ports might even attempt to do this for you automatically...it's been a while. Once linux-sun-jdk14 has served its purpose of building jdk-14, you _may_ choose to pkg_delete it kldunload linprocfs, and re-edit your fstab. In either case, the bootstrap jdk will be used to build the FreeBSD native jdk. It takes a long time, so don't be alarmed if it's still chugging after an hour or so. Best Regards, Ted