As pointed out by others - that error - usually - means that Java is not allowed to use larger key sizes - and you need the JCE patch.
1) Attached is little test program that will tell you if you have JCE installed.
testcryptostrength.zip (attached below)
2) As pointed out here : The design of JCE patch has shifted a bit recently :
https://stackoverflow.com/questions/37741142/how-to-install-unlimited-strength-jce-for-java-8-in-os-x
Java 8 Update 161
As pointed out in another answer and in Oracle's release notes for Java 8 Update 161, unlimited cryptography is enabled by default since Update 161 and you shouldn't have to do anything if using a fresh installation of this version.
Java 8 Update 151
With Java 8 Update 151, Oracle included the same JCE mechanism into Java 8 that they already provided with Java 9. To enable JCE in Java 8 Update 151 or higher, just set the property
crypto.policy=unlimited
in $JAVA_HOME/jre/lib/security/java.security
.
3) Debugging the SSL
I don't think you will need this - but if you do get caught still, then adding this to the .bat file where it runs java
-javax.net.debug="all"
will give all the SSL details - and can help isolate a problem (say if it was the DHE key size being too small, or something).
But it does look like classic issue with JCE unlimited patch not being active.
Cheers - Mark