Probably you did not install the JCE Policy file yet.
Download this file:
And Install the file in ${java.home}/jre/lib/security/.
${java.home}
refers to your installation directory of Java
for mac:
- open finder
- press command + shift + g
- type
/Library/Java/JavaVirtualMachines
- navigate to your version of JDK
- then
Contents/Home/jre/lib/security
- unzip the downloaded file and place all files inside here
for CLI
unzip downloaded_policy_file.zip -d /Library/Java/JavaVirtualMachines/<JDK_VERSION>/Contents/Home/jre/lib/security/
mv /Library/Java/JavaVirtualMachines/<JDK_VERSION>/Contents/Home/jre/lib/security/UnlimitedJCEPolicyJDK<VERSION>/* /Library/Java/JavaVirtualMachines/<JDK_VERSION>/Contents/Home/jre/lib/security
rm -rf Library/Java/JavaVirtualMachines/<JDK_VERSION>/Contents/Home/jre/lib/security/UnlimitedJCEPolicyJDK<VERSION>/