Set JVM enable-native-access for Java 17+ (#3819)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2025-12-20 09:37:30 -06:00
1 parent f1cacb7c36
commit 5cbf1e0785
3 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -28,7 +28,11 @@ shopt -s nullglob
isDebugging && set -x
#umask 002
if (( $(mc-image-helper java-release) >= 17 )); then
MC_IMAGE_HELPER_OPTS+=" --enable-native-access=ALL-UNNAMED"
export MC_IMAGE_HELPER_OPTS
fi
export HOME=/data
log "Running as uid=$(id -u) gid=$(id -g) with /data as '$(ls -lnd /data)'"