java not running .jar files without absolute path. (take II)

epilogue at allstream.net epilogue at allstream.net
Tue Jun 8 23:07:14 PDT 2004


anyone have thoughts on the below?  thanks.


------
Begin forwarded message:

Date: Thu, 3 Jun 2004 13:20:35 -0400
From: epilogue at allstream.net
To: freebsd-questions at freebsd.org
Subject: java not running .jar files without absolute path.


hey all,

> 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?


thanks!
epi


More information about the freebsd-questions mailing list