title: how to give grant to a jar file to execute an another jar file
body: <p>I want to execute a jar file with using policy file from my project. my policy file is:</p>
  
  <pre><code>*grant codeBase "file:///D:/xx/yy/zz/-"{
    permission java.io.FilePermission 
      "D:/aa/bb/test.jar", "read, write, delete, execute";
  };*
  </code></pre>
  
  <p>my project is under D:/xx/yy/zz/ folder and i want to execute test.jar in this project but i had an error:</p>
  
  <p>access denied (java.io.FilePermission &lt;> execute)</p>
  
  <p>if i change policy file like this, that is ok:</p>
  
  <pre><code>*grant codeBase "file:///D:/xx/yy/zz/-"{
    permission java.io.FilePermission 
      "&lt;&lt;ALL FILES&gt;&gt;", "read, write, delete, execute";
  };*
  </code></pre>
  
  <p>But i do not want to give all permission to my project.</p>
  
  <p>And also in project i set policy file like this: </p>
  
  <p>String path="D:\aa\bb\test.jar";</p>
  
  <pre><code>     System.setProperty("java.security.policy","C:\\policy\\"+"test.policy");
  
       System.setSecurityManager(new SecurityManager());  
  </code></pre>
  
  <p>Is there any body to say something about this situation ? 
  Thanks...</p>