-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b172
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8181554 | 10 | Mandy Chung | P2 | Resolved | Fixed | b11 |
JDK-8181273 | 9.0.4 | Mandy Chung | P2 | Resolved | Fixed | b01 |
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
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
- backported by
-
JDK-8181273 Confusing message: A JNI error has occurred, please check your installation and try again
-
- Resolved
-
-
JDK-8181554 Confusing message: A JNI error has occurred, please check your installation and try again
-
- Resolved
-
- relates to
-
JDK-8167063 spurious message "A JNI error has occurred" if start-class cannot be initialized
-
- Closed
-
-
JDK-8221368 Error message when module main class cannot be loaded is missing exception details
-
- Resolved
-