From owner-freebsd-questions@FreeBSD.ORG Fri Feb 11 15:54:48 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 834A316A4CE for ; Fri, 11 Feb 2005 15:54:48 +0000 (GMT) Received: from dexter.starfire.mn.org (starfire.skypoint.net [66.93.17.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 408D043D1D for ; Fri, 11 Feb 2005 15:54:47 +0000 (GMT) (envelope-from john@dexter.starfire.mn.org) Received: (from john@localhost) by dexter.starfire.mn.org (8.11.3/8.11.3) id j1BFsYQ01978; Fri, 11 Feb 2005 09:54:34 -0600 (CST) (envelope-from john) Date: Fri, 11 Feb 2005 09:54:34 -0600 From: John To: Joshua Tinnin Message-ID: <20050211095434.A1859@starfire.mn.org> References: <20050115210617.A20158@starfire.mn.org> <20050130065321.GC16264@alzatex.com> <20050210230107.A99048@starfire.mn.org> <200502102146.04045.krinklyfig@spymac.com> <20050211011031.B99131@starfire.mn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <20050211011031.B99131@starfire.mn.org>; from john@starfire.mn.org on Fri, Feb 11, 2005 at 01:10:31AM -0600 cc: freebsd-questions@freebsd.org Subject: Re: I need a cuppa... 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: Fri, 11 Feb 2005 15:54:48 -0000 On Fri, Feb 11, 2005 at 01:10:31AM -0600, John wrote: > On Thu, Feb 10, 2005 at 09:46:03PM -0800, Joshua Tinnin wrote: > > On Thursday 10 February 2005 09:01 pm, John > > wrote: > > > On Sat, Jan 29, 2005 at 10:53:21PM -0800, Loren M. Lang wrote: > > > > On Sat, Jan 29, 2005 at 10:10:00AM -0600, John wrote: > > > > > On Sat, Jan 15, 2005 at 09:05:22PM -0800, Tabor Kelly wrote: > > > > > > Jonathan Chen wrote: > > > > > > > On Sat, Jan 15, 2005 at 09:06:17PM -0600, John wrote: > > > > > > >>OK, I must be dumb as a rock, because this has to have been > > > > > > >> discussed and documented 16 ways from Sunday, but I've > > > > > > >> looked in the FAQ, and looked in the Handbook, and I've gone > > > > > > >> through my copy of the latest edition of _The Complete > > > > > > >> FreeBSD_, but I simply do NOT get how to get Java support > > > > > > >> for FreeBSD.  I don't need the JDK, unless that's the only > > > > > > >> way to get a viable JRE. > > > > > > > > > > > > > > You can't get a separate 1.4+ JRE for FreeBSD, you need to > > > > > > > install the JDK; the JDK is available as a port in > > > > > > > java/jdk14. > > > > > > OK - I'm going to cut out a lot of the old, resolved history here, > > > and cut to the chase. >.... > > > (FreeBSD pearl.starfire.mn.org 5.3-STABLE FreeBSD 5.3-STABLE #3: Thu > > > Jan 27 23:26:17 CST 2005     > > > john@dauntless.starfire.mn.org:/usr/obj/usr/src/sys/PEARL  i386) I > > > get the following: >... > > > a+rx /usr/local/bin/registervm: not found > > > *** Error code 127 > > > > > > Stop in /usr/ports/java/jdk14. > > > pearl# > > > > > > Anybody got any clues for me? > > > > You need to install /usr/ports/java/javavmwrapper. When this happens, > > sometimes it's worthwhile to search on Google for the name of file that > > gave you the problem. In this case it's registervm, which caused the > > install to fail because it's not found on your system. javavmwrapper > > installs registervm, which I found by checking pkg_info -W registervm > > on my system, because it's already there, but a Google search will also > > show people who had the same problem, e.g., > > http://lists.freebsd.org/pipermail/freebsd-questions/2003-August/015208.html > > > > Just so you know ... OK, for anyone following along or for those who may be sifting through the archives in the future... I installed the javavmwrapper, and re-ran the install. It errored out complaining that javavm was already registered. I looked at the code, and it was a shell script, so I followed the code and found that it was looking for the entry in /usr/local/etc/javavms so I just nuked that file. The "make install" of jdk14 then succeeded! Yippee! When I tried to run java, however, I it said that it needed libm.so.2 and my system is already at libm.so.3, so I created an /etc/libmap.conf file as follows: [/usr/local/jdk1.4.2/] # All Java 1.4.1 programs use libthr # This works because "javavms" executes # programs with the full pathname libm.so.2 libm.so.3 This is probably because the server on which this was built is still running 5.2.1 and the system I'm installing it on is 5.3-STABLE. Now that I think of it, this is probably a BAD IDEA. I'm going to go back and upgrade the system that built it, and do a "make clean" and "make" for jdk14, then do the "make deinstall" and "make install" for this and see if I can't get rid of the libmap stuff, but for the moment, at least, I can do the following: java -version Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p7-john_01_feb_2005_15_43) Java HotSpot(TM) Client VM (build 1.4.2-p7-john_01_feb_2005_15_43, mixed mode) Yeee hah! Now I have to get physically near the machine and try the plugin hurdles and see if I can get java web stuff to run... -- John Lind john@starfire.MN.ORG