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
Source: stackoverflow