Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
apply UnlimitedJCEPolicyJDK8
JCE_DIR="$(dirname $(dirname $(readlink -f $(which javac))))/jre/lib/security"
echo JCE_DIR
# 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