[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How does libspawner get added to java.library.path?

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 does it.
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@xxxxxxxxxxx>
[cdt-dev] How does libspawner get added to java.library.path?

I've been puzzling over this for a while without success. Does anyone  
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