[rfc] Let the classloader search for system libraries, don't hard-code DEFAULT_LIBPATH

Alan Bateman Alan.Bateman at oracle.com
Thu Mar 24 07:09:17 PDT 2011


Matthias Klose wrote:
> Currently os_linux.cpp defines DEFAULT_LIBPATH hard-coded to "/lib:/usr/lib";
> with the upcoming multiarch changes in Debian/Ubuntu, libraries will move to
> multiarch aware locations [1], where these libraries are not found anymore by
> the class loaders.
>   
So is the issue that java.library.path isn't going to be set correctly 
when libraries are migrated to this new layout? Just wondering if the 
setup of the search path (in os::init_system_properties_values would be 
better place to do consider this). A concern with changing 
System.loadLibrary is that it has a wider impact.

-Alan.



More information about the jdk6-dev mailing list