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

Matthias Klose doko at ubuntu.com
Thu Mar 24 07:18:11 PDT 2011


On 24.03.2011 15:09, Alan Bateman wrote:
> 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?

Yes.

> Just wondering if the setup of the
> search path (in os::init_system_properties_values would be better place to do
> consider this).

DEFAULT_LIBPATH is only used in os::init_system_properties_values.

> A concern with changing System.loadLibrary is that it has a
> wider impact.

ok, thanks.

  Matthias


More information about the jdk6-dev mailing list