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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b172
    • Verification:
      Verified

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mchung Mandy Chung
                  Reporter:
                  mchung Mandy Chung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: