title: Java Error: "Your security settings have blocked a local application from running"
body: <p>I'm trying to run this simple HelloWorld code written in Java from my browser (<a href="http://en.wikipedia.org/wiki/Google_Chrome">Chrome</a>):</p>
  
  <pre><code>public class HelloWorld extends JApplet {
  public void init() {
      try {
          SwingUtilities.invokeAndWait(new Runnable() {
              public void run() {
                  JLabel lbl = new JLabel("Hello World");
                  add(lbl);
              }
          });
      }
      catch (Exception e) {
          System.err.println("createGUI didn't complete successfully");
      }
  }
  </code></pre>
  
  <p>I compiled it with <a href="http://en.wikipedia.org/wiki/NetBeans">NetBeans</a>, and then I created a WebApplication project. The <a href="http://en.wikipedia.org/wiki/HTML">HTML</a> code that runs the applet is:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;p&gt;&lt;applet code="HelloWorld" archive="applet_HelloWorld.jar"  width="590" height="530"&gt;&lt;/applet&gt;&lt;/p&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>If run the applet from NetBeans it works. But when I run the HTML code by double clicking it, the following message pops up from the browser:</p>
  
  <blockquote>
    <p>Your security settings have blocked a local application from running. </p>
  </blockquote>
  
  <p>I tried with Internet&nbsp;Explorer and Firefox but nothing.</p>
  
  <p>This message started to appear after the last update of Java. Where is the problem?</p>