From owner-freebsd-questions@FreeBSD.ORG Wed Jun 9 10:53:26 2004 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 EEB3916A4CE for ; Wed, 9 Jun 2004 10:53:26 +0000 (GMT) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ECF843D54 for ; Wed, 9 Jun 2004 10:53:26 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dire.bris.ac.uk with esmtp (Exim 4.34) id 1BY0hu-00015p-DB; Wed, 09 Jun 2004 11:53:24 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 1BY0gl-0002DJ-00; Wed, 09 Jun 2004 11:52:11 +0100 Date: Wed, 9 Jun 2004 11:52:11 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: epilogue@allstream.net In-Reply-To: <20040609020709.6513d884@localhost> Message-ID: References: <20040609020709.6513d884@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: 0.0 X-Spam-Level: / cc: freebsd-questions@freebsd.org Subject: Re: java not running .jar files without absolute path. (take II) 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: Wed, 09 Jun 2004 10:53:27 -0000 On Wed, 9 Jun 2004 epilogue@allstream.net wrote: > > which java > /usr/local/jdk1.4.2/bin/java > > > java -jar Jreepad-1.0.jar > Error: could not find libjava.so > Error: could not find Java 2 Runtime Environment. > > however, the program will run with an absolute path: > > /usr/local/jdk1.4.2/bin/java -jar Jreepad-1.0.jar > > > i don't see any typos in my $PATH (witness 'which' result above). > > the same occurs with linux-sun-jdk (when i put it earlier in the $PATH) > > am i missing something? is this standard behaviour for java? Works for me; is JAVA_HOME set to something broken in your environment? -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ ( echo "ouroboros"; cat ) > /dev/fd/0 # it's like talking to yourself sometimes