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

Jan Grant Jan.Grant at bristol.ac.uk
Wed Jun 9 03:53:27 PDT 2004


On Wed, 9 Jun 2004 epilogue at 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


More information about the freebsd-questions mailing list