Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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