Sometimes Java applications do not find the internal Key- and Truststore (where all well known SSL roots are listed). Last one was Minecraft on OS X 10.9 with installed JRE6, JDK7 and JDK8. Even a pre-defined $JAVA_HOME did not help. java.lang.RuntimeException: Unexpected error: the trustAnchors parameter must be non-empty

Hopefully, this fix should help you.