[5459] in java-interest
A problem+solution w/ j.l.Runtime.loadLibrary & NS > 2.0b4
daemon@ATHENA.MIT.EDU (Michael Slominski)
Fri Feb 9 23:27:45 1996
Date: Fri, 9 Feb 1996 18:33:34 +0800
From: michael@earthlight.com (Michael Slominski)
To: java-interest@java.sun.com
I found a small problem with Netscape and
java.lang.Runtime.loadLibrary. Ever since b5 any applet I tried to
look with at NS that had to go get a non-local class would signal a
NullPointerException and not load the class. Well it turns out that
netscape uses the LD_LIBRARY_PATH environment variable to look for
class libraries and the NullPointerException occurs if the value of
LD_LIBRARY_PATH ends with a ":". The problem was fixed when I removed
this character.
This is all just a guess but it looks like this lack of robustness
exist in java.lang.Runtime.loadLibrary (it doesn't check for null'ness
with each member of the path[] array while calling buildLibName()) but
AppletViewer doesn't experience the same problem - I guess that
AppletViewer doesn't use LD_LIBRARY_PATH?
Just in case there's anyone else out there who's a little carefree with the
environment variables.
-m
Michael Slominski
Slominski Consulting
408.738.1446
michael@earthlight.com
http://earthlight.com
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com