The library is never added to the java.library.path.
It is up to the class loader to find the library when System.loadLibrary
is called. The java.library.path is how the normal java classloader
In Eclipse, the BundleClassloader takes
care of finding the library. For the bundle and its fragments it
delegates to the ClassLoadingHook's, and I believe the default is the EclipseClassLoadingHook,
which looks under a set of directories:
Greg Watson <g.watson@xxxxxxxxxxxx> Sent by: cdt-dev-bounces@xxxxxxxxxxx
12/10/2006 06:28 PM
Please respond to
"CDT General developers list." <cdt-dev@xxxxxxxxxxx>
"CDT General developers list."
[cdt-dev] How does libspawner get added
I've been puzzling over this for a while without success.
know how the architecture-specific directory containing libpty and
libspawner gets added to the java.library.path so that
System.loadlibrary("spawner") succeeds? Or is somehow everything
under the plugins directory automatically searched?
cdt-dev mailing list