From owner-freebsd-java@FreeBSD.ORG Thu Feb 3 12:49:49 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 EC43916A4CE for ; Thu, 3 Feb 2005 12:49:49 +0000 (GMT) Received: from bloodwood.hunterlink.net.au (smtp-local.hunterlink.net.au [203.12.144.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8738743D31 for ; Thu, 3 Feb 2005 12:49:48 +0000 (GMT) (envelope-from boris@brooknet.com.au) Received: from [61.8.47.161] (ppp2FA1.dyn.pacific.net.au [61.8.47.161]) j13CnVFr010600; Thu, 3 Feb 2005 23:49:32 +1100 Message-ID: <42021E13.1020106@brooknet.com.au> Date: Thu, 03 Feb 2005 23:50:27 +1100 From: Sam Lawrance User-Agent: Mozilla Thunderbird 1.0 (X11/20050106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: brian-freebsd-007@clapper.org cc: mmeola@vericept.com Subject: JDK 1.5 interesting behavior... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2005 12:49:50 -0000 >On 25 January, 2005, at 11:46 (-0700) >Matt Meola > wrote: > >>/ I can't get java to run unless I use the absolute path to the >/>/ executable. I looked through the archives, and saw someone else had >/>/ this problem back in June of last year, but I didn't see a resolution to >/>/ the issue... >/>/ >/>/ ldconfig -r tells me that /usr/local/jdk1.5.0/jre/lib/i386 is searched, >/>/ and the shared lib is in that directory. >/>/ >/>/ JAVA_HOME is set to /usr/local/jdk1.5.0. >/>/ Any ideas? >/>/ >/>/ # java -version >/>/ Error: could not find libjava.so >/>/ Error: could not find Java 2 Runtime Environment. >/>/ >/>/ # $JAVA_HOME/bin/java -version >/>/ java version "1.5.0-p1" >/>/ Java(TM) 2 Runtime Environment, Standard Edition (build >/>/ 1.5.0-p1-toor_25_jan_2005_09_13) >/>/ Java HotSpot(TM) Client VM (build 1.5.0-p1-toor_25_jan_2005_09_13, mixed >/>/ mode) >/ >I'm seeing the same behavior. I saw it with the port as well as the >patch-and-build-yourself precursor to the port. My situation is the same as >noted above. I'm running on 4.10-RELEASE. FWIW, I have had no trouble at >all with the 1.4.2 native JDK; I've been using it for months. > >Brian Clapper, http://www.clapper.org/bmc/ I have the same problem; and I have all the right stuff showing up in JAVA_HOME, JDK_HOME and ldconfig -r. I did notice that when you run cd /usr/local/jdk1.5.0/bin; java it actually works. A quick truss of the process shows it using the current working directory for something; maybe this is unintended? -- Sam Lawrance ph +61 0425 228 579 freenode: deft