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

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.


解決方法是確保以上jar包沒改變過,比如是替換整個jar包,替換jar包裏面的class。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章