title: java.lang.SecurityException: The jurisdiction policy files are not signed by the expected signer
body: <p>I have developed a Java application and bundled it into a JAR file (executable). </p>
  
  <p>Now when I am executing the jar using command <code>Java -jar EncryptionUtility.jar &gt; log.txt</code> following exception is appearing:</p>
  
  <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
          at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:204)
          at TripleDESBC.readKey(TripleDESBC.java:85)
          at TripleDESBCUtil.decrypt3DES(TripleDESBCUtil.java:112)
          at CommonUtil.setKeys(CommonUtil.java:308)
          at CommonUtil.encryptAndSign(CommonUtil.java:575)
          at CommonUtil$5.actionPerformed(CommonUtil.java:295)
          at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
          at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
          at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
          at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
          at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
          at java.awt.Component.processMouseEvent(Unknown Source)
          at javax.swing.JComponent.processMouseEvent(Unknown Source)
          at java.awt.Component.processEvent(Unknown Source)
          at java.awt.Container.processEvent(Unknown Source)
          at java.awt.Component.dispatchEventImpl(Unknown Source)
          at java.awt.Container.dispatchEventImpl(Unknown Source)
          at java.awt.Component.dispatchEvent(Unknown Source)
          at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
          at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
          at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
          at java.awt.Container.dispatchEventImpl(Unknown Source)
          at java.awt.Window.dispatchEventImpl(Unknown Source)
          at java.awt.Component.dispatchEvent(Unknown Source)
          at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
          at java.awt.EventQueue.access$500(Unknown Source)
          at java.awt.EventQueue$3.run(Unknown Source)
          at java.awt.EventQueue$3.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
          at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
          at java.awt.EventQueue$4.run(Unknown Source)
          at java.awt.EventQueue$4.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
          at java.awt.EventQueue.dispatchEvent(Unknown Source)
          at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
          at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
          at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
          at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
          at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
          at java.awt.EventDispatchThread.run(Unknown Source)
  Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
          at javax.crypto.JceSecurity.&lt;clinit&gt;(JceSecurity.java:93)
          ... 42 more
  Caused by: java.lang.SecurityException: The jurisdiction policy files are not signed by the expected signer! (Policy files are specific per major JDK
  release.Ensure the correct version is installed.)
          at javax.crypto.JarVerifier.verifyPolicySigned(JarVerifier.java:328)
          at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:378)
  </code></pre>
  
  <p>I have checked on the internet but found no good solution or explanation on this issue. Please help..</p>