导入jdk包,不限制长度,其实并不是我的idea编码的问题,而是美国的出口限制,Sun对权限文件 local_policy.jar、US_export_policy.jar 做限制。也就是我们只要把jar包改了就可以了,相应的解答我在stackOverflow找到的,https://stackoverflow.com/questions/6481627/java-security-illegal-key-size-or-default-parameters,我
们需要替换掉这两个jar包,替换成不受限制的。
各个版本下载路径
jdk 5: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-plat-419418.html#jce_policy-1.5.0-oth-JPR
jdk6: http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
JDK7的下载地址: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
JDK8的下载地址: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
我们需要替换掉local_policy.jar、US_export_policy.jar这两个包,路径在${java.home}/jre/lib/security/下面,我的是在: