From owner-freebsd-java@FreeBSD.ORG Thu Jun 10 13:19:15 2004 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 7DF5416A4CE for ; Thu, 10 Jun 2004 13:19:15 +0000 (GMT) Received: from outbox.allstream.net (outbox.allstream.net [207.245.244.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28EB843D31 for ; Thu, 10 Jun 2004 13:19:15 +0000 (GMT) (envelope-from epilogue@allstream.net) Received: from localhost (mon-pq58-013.dial.allstream.net [216.123.135.13]) by outbox.allstream.net (Allstream MTA) with SMTP id A59E46188 for ; Thu, 10 Jun 2004 09:19:13 -0400 (EDT) Date: Thu, 10 Jun 2004 09:19:07 -0400 From: epilogue@allstream.net To: freebsd-java@freebsd.org Message-Id: <20040610091907.47256402@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 Subject: java not running .jar files without absolute path. (take II) 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, 10 Jun 2004 13:19:15 -0000 > > > > On Wed, 9 Jun 2004 epilogue@allstream.net wrote: > > > On Wed, 9 Jun 2004 11:52:11 +0100 (BST) > > > Jan Grant 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? > > > > > 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? > > Well, the path entry only suffices on my installation; I merely > hypothesised that an erroneous setting of that variable might be the > cause. > > If I were you I'd take this to the freebsd-java list, there's more of a > concentration of expertise there :-) hello java-team, would anyone have an idea about why my java install is requiring absolute paths to work? thanks! epi