If you’re running OpenJDK 7 on OS X and have seen this exception
Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
there’s a simple fix, just link in the same
cacerts file that Apple’s JDK 1.6 uses:
cd $(/usr/libexec/java_home -v 1.7)/jre/lib/security ln -fsh /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts
You need to do this for every OpenJDK version you have installed, just change
-v 1.7 to the version you want to fix. Run
/usr/libexec/java_home -V to see all the JRE and JDK’s you have installed.
Perhaps the OpenJDK guys could add this to their install scripts.