From owner-freebsd-java@FreeBSD.ORG Tue Mar 22 01:51:23 2005 Return-Path: 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 5D94016A4CE for ; Tue, 22 Mar 2005 01:51:23 +0000 (GMT) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D481D43D48 for ; Tue, 22 Mar 2005 01:51:22 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) j2M1pL0x025059; Mon, 21 Mar 2005 20:51:21 -0500 (EST) Date: Mon, 21 Mar 2005 20:51:21 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Chuck Robey In-Reply-To: <423F75CA.2080006@chuckr.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) cc: java Subject: Re: settings X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Eischen List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2005 01:51:23 -0000 On Tue, 22 Mar 2005, Chuck Robey wrote: > Now that I finally have jdk1.5.0 built and installed, I have a single > demo application, and even that one application only manages to give me: > > Error: could not find libjava.so > Error: could not find Java 2 Runtime Environment. > > This is from the Argo uml application, and that's pretty vanilla, I > think, so I have the jdk1.5.0 installed badly. Can someone either give > me another dmo appl, or even better, tell me what I have wrong with my > installation ... > > One hint, the directory /usr/local/jdk1.5.0/jre/lib/amd64 is full of > libs like libjava.so (yes, the same one as the error message) but none > of them register in ldconfig -r, although they are on my LD_LIBRARY_PATH > list. I don't think they are suppose to. There's probably some magic that pulls them in. Your binaries might think they are i386, so I'd try 'ln -s amd64 i386' in /usr/local/jdk1.5.0/jre/lib and see what happens. You can try also try fiddling with LD_TRACE_LOADED_OBJECTS and friends (man rtld) to see if you can get it to spit out from where java/jre are trying to load these libraries. If you can figure that out, you can hack around it by copying/creating symlinks. If you get that working, you might try rebuilding again using jdk15 and seeing if that fixes it. -- DE