title: How do I sign a Java applet for use in a browser?
body: <p>I'm trying to deploy a Java applet on my website.  I also need to sign it, because I need to access the clipboard.  I've followed all the signing tutorials I could find but have not had any success.  Here is what I've done so far:</p>
  
  <ul>
  <li>Wrote an applet in NetBeans.  It runs fine in the applet viewer.</li>
  <li>Made a .jar file out of it.</li>
  <li>Created a certificate by doing this:</li>
  </ul>
  
  <blockquote>
  <pre><code>keytool -genkey -keyalg rsa -alias myKeyName
  keytool -export -alias myKeyName -file myCertName.crt
  </code></pre>
  </blockquote>
  
  <ul>
  <li>Signed it wtih jarsigner like this:</li>
  </ul>
  
  <blockquote>
  <pre><code>jarsigner "C:\my path\myJar.jar" myKeyName
  </code></pre>
  </blockquote>
  
  <ul>
  <li>Made an html file containing this:</li>
  </ul>
  
  <blockquote>
  <pre><code>&lt;html&gt;
    &lt;body&gt;
  &lt;applet code="my/path/name/myApplet.class" archive="../dist/myJar.jar"/&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  </blockquote>
  
  <p>When I open that html file, I never get the security confirmation dialog box (and thus get the "java.security.AccessControlException: access denied" error).  This happens on all browsers.</p>
  
  <p>Am I missing a step?</p>