From owner-freebsd-questions Fri Oct 17 02:00:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA00621 for questions-outgoing; Fri, 17 Oct 1997 02:00:14 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from hotpoint.dcs.qmw.ac.uk (hotpoint.dcs.qmw.ac.uk [138.37.88.162]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA00616 for ; Fri, 17 Oct 1997 02:00:10 -0700 (PDT) (envelope-from scott@dcs.qmw.ac.uk) Received: from andromeda.dcs.qmw.ac.uk [138.37.89.2]; by hotpoint.dcs.qmw.ac.uk (8.8.7/8.8.5/S-4.0) with SMTP; id KAA24472; Fri, 17 Oct 1997 10:00:07 +0100 (BST) Date: Fri, 17 Oct 1997 10:00:23 +0100 Message-Id: <199710170900.KAA14699@andromeda> From: Scott Mitchell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Patrick Gardella CC: questions@freebsd.org Subject: Re: JDK 1.1.4 In-Reply-To: <114364897@toto.iv> X-Mailer: VM 6.22 under 19.15 XEmacs Lucid Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Patrick Gardella said: >Alex said: >>You can also use the Linux port at: www.blackdown.org > >And then he wrote: >>When you execute "java" or "javac", these file are actually symbolic >>links to a file called ".java-wrapper". This is a shell script that >>configures the environment, among other things. > >>The problem is that this shell script invokes a few system-related >>binaries like "uname" which have different parameters on FreeBSD than on >>Linux. > >>You can just arrange the shell script to use the proper parameters and >>you won't get these anoying messages. > >Olaf said: >>The Linux JDK from java.blackdown.org works very well with Linux emulation, >>too (after tweaking bin/.java_wrapper a little). > > > >How does one go about using the linux java port? I've downloaded 1.1.3-v2 >and the updater to v2-1 from blackdown. > >Would anyone be willing to send me a copy of their .java-wrapper? I'll >try some tweaking, but shell scripting is not my strong point! > >Much obliged! > >Patrick One installs the Linux emulation library from the port collection, unpacks the JDK archive in a convenient place, and updates a few environment variables (PATH, JAVA_HOME, CLASSPATH, ...). The setup instructions for the JDK itself are probably included but it's pretty trivial. As far as the .java_wrapper script goes, I think it was just a matter of changing the invocation of 'arch' to the appropriate variant of 'uname' and using the FreeBSD equivalent to some weird option of '['. It's on my home machine so not accessible right now -- I'll try to remember to mail you a copy over the weekend. HTH, Scott -- =========================================================================== Scott Mitchell | PGP Key ID |"If I can't have my coffee, I'm just | 0xE8A64271 | like a dried up piece of roast goat" QMW College, London, UK | | -- J. S. Bach.