问题
The preview release of Java 7 seems to be missing JCE package for unlimited cryptography strength. Has someone stumbled upon such?
回答1:
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
回答2:
You need to install the missing JCE package.
Locate your jre lib/security directory
$ which java /usr/bin/java # Do this recursively till you find the java installation folder $ ls -la /usr/bin/java
On Linux it should be by default: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/
On Windows it should be by default: C:\Program Files\Java\jre7\lib\security
- Download the Java Cryptography Extension (JCE)
Download for Java 6: http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
Download for Java 7: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
Download for Java 8: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
- Install the JCE
Extract the downloaded zip and place the two .jar files: US_export_policy.jar and local_policy.jar into your jre/lib/security folder.
Overwrite old files if any.
来源:https://stackoverflow.com/questions/6843776/java-se-strong-cryptography-for-java-7