Skip to content

Instantly share code, notes, and snippets.

@pironim
Last active September 27, 2017 03:55
Show Gist options
  • Save pironim/aaf8418424c36b1486b9 to your computer and use it in GitHub Desktop.
Save pironim/aaf8418424c36b1486b9 to your computer and use it in GitHub Desktop.
apply UnlimitedJCEPolicyJDK8
JCE_DIR="$(dirname $(dirname $(readlink -f $(which javac))))/jre/lib/security"
echo JCE_DIR
# http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
# http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
# Dowload and unpack UnlimitedJCE policy files
# backup
sudo mv $JCE_DIR/local_policy.jar $JCE_DIR/local_policy.jar.bak1
sudo mv $JCE_DIR/US_export_policy.jar $JCE_DIR/US_export_policy.jar.bak1
cd UnlimitedJCEPolicyJDK8
# apply new files
sudo mv -t $JCE_DIR local_policy.jar US_export_policy.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment