Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8181033

Confusing message: A JNI error has occurred, please check your installation and try again

XMLWordPrintable

    • b172
    • Verified

        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

              mchung Mandy Chung (Inactive)
              mchung Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: