Skip to content

Instantly share code, notes, and snippets.

@zeroDivisible
Created February 5, 2014 22:28
Show Gist options
  • Save zeroDivisible/8834611 to your computer and use it in GitHub Desktop.
Save zeroDivisible/8834611 to your computer and use it in GitHub Desktop.
Error - trustAnchors parameter must be non-empty

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment