Skip to content

Instantly share code, notes, and snippets.

Created July 4, 2016 19:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
#!/usr/bin/env bash
[[ -z "$JAVA_HOME" ]] && echo "JAVA_HOME must be set" && exit 1
cd $JAVA_HOME/jre/lib/security
curl -LO "" -H 'Cookie: oraclelicense=accept-securebackup-cookie'
# backup existing JVM files that we will replace just in case:
mv local_policy.jar local_policy.jar.orig
mv US_export_policy.jar US_export_policy.jar.orig
mv UnlimitedJCEPolicyJDK8/US_export_policy.jar .
mv UnlimitedJCEPolicyJDK8/local_policy.jar .
chown root:wheel US_export_policy.jar
chown root:wheel local_policy.jar
# cleanup download file:
rm -rf
rm -rf UnlimitedJCEPolicyJDK8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment