Forked from kloudsamurai/Install jdk8 + jce unlimited on Amazon Linux
Last active
August 7, 2016 18:43
-
-
Save jamelt/84de87d7f682e2ab81d64c4f4ab9afdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-x64.rpm" | |
sudo yum -y localinstall jdk-*.rpm | |
rm -fR jdk-*.rpm | |
/usr/sbin/alternatives --config java | |
# install JCE 8 | |
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" | |
unzip jce_policy-8.zip | |
mv /usr/java/default/jre/lib/security/local_policy.jar /usr/java/default/jre/lib/security/local_policy.jar.backup | |
mv /usr/java/default/jre/lib/security/US_export_policy.jar /usr/java/default/jre/lib/security/US_export_policy.jar.backup | |
mv UnlimitedJCEPolicyJDK8/*.jar /usr/java/default/jre/lib/security/ | |
rm -f jce_policy-8.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment