title: "java.security.AccessControlException: access denied ("java.net.SocketPermission" "www.google.fr:80" "connect,resolve")"
body: <p>With my Java applet I run a HTTP request to www.google.fr but the browser displays:
  "java.security.AccessControlException: access denied (" java.net.SocketPermission "" www.google.fr:80 "" connect, resolve ")"</p>
  
  <p>I signed my applet with :</p>
  
  <pre><code>keytool -genkey -alias keyName
  keytool -selfcert -alias keyName
  jarsigner appletName.jar keyName
  </code></pre>
  
  <p>Sometimes I authorize the applet to execute.
  But sometimes no pop-up appears with permission.</p>
  
  <p>I load the applet with :</p>
  
  <pre><code>function loadApplet() {
      console.log('loadApplet [start]');
      $('#applet').html('&lt;applet name="requestApplet" archive="applet.jar" code="GoogleRequest.class" height="10" width="10"&gt;&lt;/applet&gt;');
      console.log(document.requestApplet.methodOfApplet()); // &lt;-- Exception
      console.log('loadApplet [finish]');
  }
  </code></pre>