From owner-freebsd-questions@FreeBSD.ORG Wed Jun 9 17:27:29 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 1727216A4CE for ; Wed, 9 Jun 2004 17:27:29 +0000 (GMT) Received: from outbox.allstream.net (outbox.allstream.net [207.245.244.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF29743D2D for ; Wed, 9 Jun 2004 17:27:28 +0000 (GMT) (envelope-from epilogue@allstream.net) Received: from localhost (mon-pq66-163.dial.allstream.net [216.123.143.131]) by outbox.allstream.net (Allstream MTA) with SMTP id 57F70B4E22; Wed, 9 Jun 2004 13:27:05 -0400 (EDT) Date: Wed, 9 Jun 2004 13:27:01 -0400 From: epilogue@allstream.net To: Jan Grant Message-Id: <20040609132701.03ed5691@localhost> In-Reply-To: References: <20040609020709.6513d884@localhost> X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: 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 17:27:29 -0000 On Wed, 9 Jun 2004 11:52:11 +0100 (BST) Jan Grant wrote: > 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? > hello jan, > echo $JAVA_HOME JAVA_HOME: Undefined variable. hmmm. i don't recall ever setting that variable. yet, i do recall this not being an issue with previous installs of java. is JAVA_HOME a variable that is required? shouldn't the $PATH entry be sufficient? thanks. > -- > 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 >