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

epilogue at allstream.net epilogue at allstream.net
Thu Jun 10 14:07:57 GMT 2004


On Thu, 10 Jun 2004 16:28:14 +0300
Panagiotis Astithas <past at noc.ntua.gr> wrote:

> epilogue at allstream.net wrote:
> > 
> >>>>>On Wed, 9 Jun 2004 epilogue at allstream.net wrote:
> > 
> > 
> >>>>On Wed, 9 Jun 2004 11:52:11 +0100 (BST)
> >>>>Jan Grant <Jan.Grant at bristol.ac.uk> 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?
> 
> Would you mind posting the output of 'env' and 'ldconfig -r'?

gladly.  please see attached txt file.  thanks.


> Cheers,
> -- 
> Panagiotis Astithas
> Electrical & Computer Engineer, PhD
> Network Management Center
> National Technical University of Athens, Greece
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: javainfo
Type: application/octet-stream
Size: 17902 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-java/attachments/20040610/615560ab/javainfo.obj


More information about the freebsd-java mailing list