The default java.library.path on Linux does not include the library paths in the mulitarch-spec
Glavo
zjx001202 at gmail.com
Sat Dec 23 18:18:45 UTC 2023
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jdk-dev/attachments/20231224/627f201e/attachment.htm>
More information about the jdk-dev
mailing list