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

后端 未结 5 1328
南旧
南旧 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:52

    I hit this when trying to run Maven in the library/openjdk:9 Docker container. I resolved it the same way as other commenters here, by getting a Java 9 JDK from Oracle at https://jdk9.java.net/download/ and setting JAVA_HOME. It seems that these two jar files (mentioned in other answers) aren't present in the Docker image.

提交回复
热议问题