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

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

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)'"