title: java.security.AccessControlException in Applet
body: <p>Inside my Applet, it needs to download the csv file from other site to run. </p>
  
  <p>When i run applet with appletviewer, it gave me this exception :</p>
  
  <pre><code>java.security.AccessControlException: access denied (java.net.SocketPermision www.xxxsitexxx.com:80 connect, resolve
     ....
  </code></pre>
  
  <p>My applet's signed : </p>
  
  <pre><code> jarsigner -verify myfile.jar &gt;&gt; the result :  jar verified.
  </code></pre>
  
  <p>I tried to add :</p>
  
  <pre><code>grant {
        permission java.security.AllPermission;
      };
  </code></pre>
  
  <p>into Tomcat's folder :</p>
  
  <pre><code>..conf/catalina.policy
  </code></pre>
  
  <p>But it didn't work.</p>
  
  <p>Google suggests me to add security permisson to :</p>
  
  <pre><code>... jre/lib/security/java.policy
  </code></pre>
  
  <p>But I couldn't change it :</p>
  
  <pre><code>Access to ... jre/lib/security/java.policy was denied.
  </code></pre>
  
  <p>My question is :</p>
  
  <ol>
  <li>Does add permission to java.policy solve to problem?</li>
  <li>If so, how could I change java.policy's content?</li>
  </ol>
  
  <p>PS : I read many questions here relate to my problem in Stackoverflow, but I couldn't find the right way to solve it.</p>
  
  <pre><code>EDIT : i got the Applet work by signing all jar files that needed to run with the Applet.
  </code></pre>