Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.security.AccessControlException:
access denied ("java.lang.RuntimePermission"
"accessClassInPackage.com.sun.crypto.provider")
java launcher outputs "Error: A JNI error has occurred, please check your installation and try again", very confusing message. A few attempts to improve this to catch ClassNotFoundException and LinkageError.
See example test in [1]
[1] http://mail.openjdk.java.net/pipermail/jigsaw-dev/2017-May/012765.html