Java SE strong cryptography for Java 7? [closed]

独自空忆成欢 提交于 2019-11-30 09:17:40

You need to install the missing JCE package.

  1. 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

  1. 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

  1. 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!