title: Applet blocked by java security settings in java 7
body: <p>I am trying to deploy a test demo applet. The code of applet is presented in following</p>
  
  <hr>
  
  <pre><code>import java.applet.Applet;
  import java.awt.Graphics;
  
  public class TestApplet extends Applet{
  
      public void paint(Graphics gh){
          gh.drawString("hello world", 300, 200);
      }
  }
  </code></pre>
  
  <p>I have also used a manifest file which is included in jar containing the following lines</p>
  
  <p><strong>Permissions: sandbox</strong></p>
  
  <p><strong>Application-Name: Applet Demo</strong></p>
  
  <p>Then I have signed the jar using <strong>jarsigner</strong> with a keystore containing trusted certificate from <strong>thawte</strong>. Jarsigner can also verify the signed jar with appropriate certificate chain. I have also installed that .p12(keystore) file in the system</p>
  
  <p>After that I tried to load the applet from local server through Chrome browser. Following is my html code</p>
  
  <pre><code>&lt;html&gt;
  &lt;Title&gt;Applet Testing&lt;/Title&gt;
  &lt;hr&gt;
  &lt;applet code="TestApplet.class"
      archive="SignedTestApplet.jar"
      width="480" height="320"&gt;
  &lt;param name="Permissions" value="sandbox"/&gt;
  &lt;param name="Application-Name" value="Applet Demo"/&gt;
  &lt;/applet&gt;
  &lt;hr&gt;
  &lt;html&gt;
  </code></pre>
  
  <p>After following all the procedures described above, I get the following pop-up response</p>
  
  <hr>
  
  <p><strong>Your security settings have blocked an application from running with an out-of-date or expired version of java</strong></p>
  
  <hr>
  
  <p>I am using java 7 update 60 and it works if I set the security level as medium from Java Control Panel, but I have to keep the level as high.</p>
  
  <p>Is there any flaw in my procedures or what should be done??</p>
  
  <p>Please suggest me.</p>