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

后端 未结 5 1366
南旧
南旧 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 06:44

    Make sure the following files on executing JRE is NOT corrupted/modified/deleted.

    • jre\lib\security\local_policy.jar
    • jre\lib\security\US_export_policy.jar

    I had a similar issue which was caused by manually copying these two files from different java version. Resolved after replacing with original files.

提交回复
热议问题