title: access denied ("java.io.FilePermission" "execute")
body: <p>I am beginner.it is first applet that i writing</p>
  
  <p>i want run exe application with applet</p>
  
  <p>java code</p>
  
  <pre><code> package appletexample;
  
  import java.io.*;
  import java.awt.*;
  import java.applet.Applet;
  
  public class Welcome extends Applet {
  
      public void init() {
          String execommand = "C:\\windows\\notepad.exe" ;
          try {
              Process proc =  Runtime.getRuntime().exec(execommand) ;
          }
          catch(IOException ieo) {
              System.out.println("Problem starting " + execommand) ;
          }
      }
  } 
  </code></pre>
  
  <p>java.policy.applet</p>
  
  <pre><code>grant {
    permission java.security.AllPermission;
  };
  </code></pre>
  
  <p>i run this code in eclipse <code>Run As-&gt;Java Applet</code> worked and opened NotePade
  but when <code>Export-&gt;Jar File(with .classPath,.project,java.policy.applet)</code>
  and use in </p>
  
  <p>Html</p>
  
  <pre><code>&lt;applet archive="test.jar" code="appletexample/Welcome.class"  width=550 height=300&gt;
  </code></pre>
  
  <p>in firefox say error access denied ("java.io.FilePermission" "execute")?
  how can fix this problem?
  <img src="https://i.stack.imgur.com/qNc5q.png" alt="firefox first">
  <img src="https://i.stack.imgur.com/uNibN.png" alt="enter image description here">
  <a href="https://drive.google.com/file/d/0B4ZQO92LSOT4bDIxUEF5SW1ra1k/view?usp=sharing" rel="nofollow noreferrer">download my java and Html code</a></p>