Last active
September 10, 2021 13:53
-
-
Save kloudsamurai/b644351abde2058edcdfbcceca436f64 to your computer and use it in GitHub Desktop.
Install Java via Homebrew (brew) on Mac OSX with unlimited strength JCE
This file contains hidden or 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
brew update | |
brew cask install java | |
brew cask install jce-unlimited-strength-policy | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.8` |
I see this err:
Error: Cask 'jce-unlimited-strength-policy' is unavailable: No Cask with this name exists.
Ditto.
Starting in Java 1.8u151, you can just set crypto.policy=unlimited to your java.security file and skip downloading the unlimited strength jars. This is mentioned in release notes here: http://www.oracle.com/technetwork/java/javase/8all-relnotes-2226344.html#R180_151.
Starting in Java 1.8u161, unlimited strength cryptography is enabled by default. https://stackoverflow.com/a/45055461
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To see which java versions are currently installed:
/usr/libexec/java_home -V