Open source software supply chain lighting plan, waiting for you>>>
Recently, when developing a project, the JDK environment was switched from 1.6 to 1.7, and the project started normally. However, when processing business, this error was reported
Caused by: java.lang.SecurityException: Jurisdiction policy files are not signed by trusted signers!
I’ve never met this problem before, so I went to Google Baidu online and knew that this problem involves JCE , which may be unfamiliar to everyone
JCE, Java cryptography extension , in the early JDK version, due to the restrictions of the U.S. password export regulations, the export of Java API involving encryption and decryption function is restricted, so the security components in Java are divided into two parts: JCA (Java cryptography Architecture) without encryption function and JCE (Java cryptography extension) with encryption function. During jdk1.1-1.3, JCE is an extension package, which can only be downloaded by users in the United States and Canada. After jdk1.4 +, it will be distributed with the JDK core package
To learn about the API system of JCA and JCE, click the following link:
1 http://87426628.blog.163.com/blog/static/606936182013104883902/
My problem is that the environment is switched to jdk1.7, but the JCE version does not match my JDK version
solutions :
Download local_ Policy.jar and us_ export_ policy.jar
Download address of JDK6:
0 http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
Download address of JDK7:
0 http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
After downloading, the original file will be overwritten
If JRE is installed, put the two jar files in% JRE_ When you want to cover the original file under home%/lib/security, remember to back it up first
If JDK is installed, put the two jar files in% JDK as well_ Under home% \ JRE/lib/security
Then the problem was solved