# Args to the JVM, added by using @jvmargs.txt in the java command line created by InstallJava[].
# These are not used on Mac OSX; must add lines to the Info.plist file instead.
# Likely that more --add-opens lines will be needed as we discover more modules that throw "illegal reflective access operation" warnings
-Djava.system.class.loader=com.wolfram.jlink.JLinkSystemClassLoader
-Xshare:off   # turn off CDS to avoid idiotic Java warning at startup: "Archived non-system classes are disabled..." Only needed in JDK > 11
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.security=ALL-UNNAMED          # for java.security.MessageDigest$Delegate
--add-opens java.base/sun.nio.cs=ALL-UNNAMED             # for sun.nio.cs.Unicode
--add-opens jdk.jshell/jdk.jshell=ALL-UNNAMED            # needed for ExternalEvaluate support for Java
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED    # needed for ExternalEvaluate support for Java
--add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED    # bug 381894
--add-opens java.desktop/sun.awt.image=ALL-UNNAMED       # for JavaGraphics`
