shared libraries

Tom Tromey tromey@redhat.com
Mon Sep 17 08:06:00 GMT 2001


>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:

Anthony> If the class loader finds the proper .so, Class.forName() may still
Anthony> throw a ClassNotFoundException if that .so hasn't been linked with
Anthony> every .so it depends on at runtime (unless those libraries have
Anthony> already been loaded, libgcj.so).
Anthony> Is there any easier way to deal with this?
I don't know of one. I think you have to link your .so so that the
system can discover what shared libraries it requires.
As I understand it, if you use libtool to build your shared library,
and install the `.la' file, then libltdl can discover these
dependencies even on systems where you can't link shared libraries
this way.
Tom


More information about the Java mailing list

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