[jdk8u-dev] RFR: 8269668: [aarch64] java.library.path not including /usr/lib64
Andrew John Hughes
andrew at openjdk.org
Mon Nov 17 22:29:35 UTC 2025
On Wed, 12 Nov 2025 09:07:00 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
>> The AArch64 `DEFAULT_LIBPATH` on OpenJDK 11 & 17 was adjusted back in July 2021 to include `/usr/lib64` and `/lib64`, as it is a 64-bit architecture where these library directories may be used. 8u was not included in this backporting at the time, leading to inconsistent library loading between AArch64 on OpenJDK 8 and later JDK versions.
>>
>> I don't see any strong reason to retain this inconsistency. Using the conservative version backported to 11u, libraries in `/lib` and `/usr/lib`will still take priority, so the only effect of this change is in allowing the JDK to find libraries on AArch64 systems where libraries are installed in `/lib64` and `/usr/lib64`, where this would currently fail.
>>
>> The content of the change itself applies as is to 8u. The patch did not apply due to differing context and I took this opportunity to also fix the indentation in that section (done as part of the more comprehensive change [JDK-8057109](https://bugs.openjdk.org/browse/JDK-8057109) in OpenJDK 9 and later) rather than breaking the indentation for the new lines.
>
> OK.
Thanks @jerboaa & @theRealAph
-------------
PR Comment: https://git.openjdk.org/jdk8u-dev/pull/719#issuecomment-3544110178
More information about the jdk8u-dev
mailing list