Dynamic class loading

Bryce McKinlay bryce@albatross.co.nz
Sat Apr 1 00:00:00 GMT 2000


Tom Tromey wrote:
> Suppose you are looking for a class quux.foo.bar.
> The system class loader will first look for a .so named quux-foo-bar.so.
> If that fails (either not found, or doesn't provide the class), it
> will look for quux-foo.so.
> Then it will look for quux.so.

And, of course, it searches for these .so files on LD_LIBRARY_PATH, not
CLASSPATH. Personally I'm not sure that confusing the two is really a good idea.
CLASSPATH is for class files, not system-dependent native code. And if we start
putting .so's on there, it could potentially cause problems with existing java
applications.
 [ bryce ]


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /