java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurityManager
javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2543)
java
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.