problems using --enable-native-access

Alan Snyder javalists at cbfiddle.com
Wed Feb 4 19:02:50 UTC 2026


I started trying to use —enable-native-access but ran into a problem.

I have some (test) programs that I run with many different JDKs. The problem is that giving —enable-native-access to an old JDK is a fatal error.

Is there some way to perform this configuration that does not crash an older JDK?

A system property, perhaps?



More information about the jigsaw-dev mailing list