Date: Fri, 28 Oct 2005 22:27:22 -0400 From: Ted Stodgell <trs137@psu.edu> To: Jens Augustenborg <jja@vestnet.dk> Cc: freebsd-java@freebsd.org Subject: Re: installing java.... Message-ID: <4362DE0A.7090005@psu.edu> In-Reply-To: <436280A5.6020805@vestnet.dk> References: <436280A5.6020805@vestnet.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Jens Augustenborg wrote: > How do I actually use the patch-files - the BUILD-file (from | > http://www.eyesbeyond.com > <http://www.eyesbeyond.com/freebsddom/java/jdk14.html>) |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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4362DE0A.7090005>