Hi,

There are already many Linux distributions that are following the
multiarch-spec[1] and adding the following paths to the default library
path list:

   - /usr/local/lib/<triplet>
   - /lib/<triplet>
   - /usr/lib/<triplet>

But OpenJDK doesn't add these paths to the java.library.path by default, so
System.loadLibrary(String) has annoying behavior differences with ld.
Many libraries already installed on the system cannot be found by
System.loadLibrary(String).

I wish OpenJDK would parse the /etc/ld.so.conf to get the full library path
list so it would be consistent with the behavior of ld.
Can anyone consider this suggestion?

Glavo

[1]: https://wiki.ubuntu.com/MultiarchSpec

Reply via email to