title: Local Applet Security Exception
body: <p>I'm trying to run a basic hello world Java applet in my browser, but I keep getting "Application Blocked by Security Settings" with the following message:</p>
  
  <blockquote>
    <p>SecurityException: Your security settings have blocked a local application from running</p>
  </blockquote>
  
  <p>I tried changing the security settings through the <a href="http://www.java.com/en/download/help/jcp_security.xml">Java Control Panel</a>, but there is no slider, just certificates.</p>
  
  <p>I get the same error when trying to open the .html file in other browsers.</p>
  
  <p><strong>Applet code:</strong></p>
  
  <pre><code>import javax.swing.*;
  import java.awt.*;
  
  public class HelloWorldApp extends JApplet
  {
      public void init()
      {
          JLabel label = new JLabel("Hello World");
          add(label);
      }
  }
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;&lt;/head&gt;    
  &lt;body&gt;    
     &lt;applet code="HelloWorldApp.class" width="300" height="100"&gt;&lt;/applet&gt;    
  &lt;/body&gt;    
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Question</strong>: How can I get the applet to work? Or rather, how can I change the security settings to allow the applet to run locally, if that is the issue and not something else?</p>