title: Applet not running in browser
body: <p>I'm developing an Applet which uses 3rd party libraries. It works correctly if I run it from Eclipse but if I launch it from the browser I get a runtime error.</p>
  
  <p>Here's my code html:</p>
  
  <pre><code>&lt;applet code='it.witbit.SignApplet.class' 
          codebase="http://localhost/applet2/"
          archive='AppletFirma.jar' 
          &gt;
  </code></pre>
  
  <p>The <code>.jar</code> file is correctly found together with the SignApplet.class. However there's a runtime error:</p>
  
  <pre><code>network: Connessione a http://localhost/applet2/org/bouncycastle/cms/CMSSignedDataGenerator.class con proxy=DIRECT
  basic: eccezione: java.lang.NoClassDefFoundError: org/bouncycastle/cms/CMSSignedDataGenerator
  java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/cms/CMSSignedDataGenerator
  </code></pre>
  
  <p>All the jars needed by the Applet are in the same folder as AppletFirma.jar, that is applet2 folder of localhost (set as the codebase). 
  The manifest contains just a simple declaration:</p>
  
  <pre><code>Manifest-Version: 1.0
  </code></pre>
  
  <p>and I've exported the Applet from Eclipse without including any external jars.
  Any idea on what's going on?</p>
  
  <p>Thanks in advance</p>