java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurityManager

后端 未结 5 1372
南旧
南旧 2021-01-06 06:36
java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurityManager
    javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2543)
    java         


        
5条回答
  •  长情又很酷
    2021-01-06 07:07

    This happened to me when I was trying to connect to a DB with IntelliJ 14.

    I had played around with my jre\lib\security\local_policy.jar and jre\lib\security\US_export_policy.jar files

    I fixed this by:

    1. Installing a new JDK
    2. Pointing IntelliJ to use this new JDK
    3. Setting JAVA_HOME to this new JDK
    4. Restart IntelliJ

提交回复
热议问题