[jdk8u-dev] Integrated: 8269668: [aarch64] java.library.path not including /usr/lib64

Andrew John Hughes andrew at openjdk.org
Mon Nov 17 22:29:36 UTC 2025


On Tue, 11 Nov 2025 22:40:57 GMT, Andrew John Hughes <andrew 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.

This pull request has now been integrated.

Changeset: a87381a6
Author:    Andrew John Hughes <andrew at openjdk.org>
URL:       https://git.openjdk.org/jdk8u-dev/commit/a87381a6e8c008ada0152128aa581319e2ef99b3
Stats:     15 lines in 1 file changed: 7 ins; 0 del; 8 mod

8269668: [aarch64] java.library.path not including /usr/lib64

Reviewed-by: sgehwolf, aph
Backport-of: 05c76978a6954897500c3dc8ac6aeca0f23e57cd

-------------

PR: https://git.openjdk.org/jdk8u-dev/pull/719


More information about the jdk8u-dev mailing list