title: SecurityException Even After Replacing Crypto Policy Jars
body: <p>I set up a project using some of the Jasypt encryption libraries, and when the code tries to execute, the first encrypt operation throws in following errors.</p>
  
  <pre><code>Caused by: java.lang.SecurityException: The jurisdiction policy files are not signed by a        trusted signer!
  at javax.crypto.JarVerifier.verifyPolicySigned(JarVerifier.java:289)
  at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:316)
  at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:261)
  at javax.crypto.JceSecurity.access$000(JceSecurity.java:48)
  at javax.crypto.JceSecurity$1.run(JceSecurity.java:78)
  at java.security.AccessController.doPrivileged(Native Method)
  at javax.crypto.JceSecurity.&lt;clinit&gt;(JceSecurity.java:76)
  ... 9 more
  </code></pre>
  
  <p>After researching for a while, it seemed obvious I just had to replace my JCE crypto policy files.  I downloaded the jce7 zip from this link:
  <a href="http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html" rel="nofollow">http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html</a></p>
  
  <p>I unzipped that file and copied the two jars to C:\Program Files (x86)\Java\jre7\lib\security</p>
  
  <p>There is also a jre6 directory on the same level as the jre7 one I just mentioned. I also tried copying the same policy files to the jre6 directory as well after my first attempt didn't work. I've also tried copying the jre6 specific jars to that directory with no luck.</p>
  
  <p>edit: I am running Java 1.7.0_40</p>
  
  <p>Any help would be greatly appreciated.
  Thanks!</p>