title: How to specify correctly codebase and archive in Java applet?
body: <p>I use firefox version > 3.5 (3.5.<em>,3.6.</em>,4.*) and I try to specify <code>archive</code> and <code>codebase</code> property correctly but it doesn't work. My main class for applet is situated in the <code>archive</code> and some necessary classes that are loaded during runtime are situated in the <code>codebase</code>. If I specify only the <code>archive</code> then the applet is loaded but the classes from <code>codebase</code> are missing. If I specify the <code>archive</code> and the <code>codebase</code> then the applet can't be loaded. It looks like applet try to load main class from <code>codebase</code> folder and doesn't look into the <code>archive</code> file.</p>
  
  <pre><code>&lt;html&gt;    
  &lt;body&gt;
  &lt;applet width=600 height=300 code="MyClass.class" 
    type="application/x-java-applet;jpi-version=6" 
    archive="http://myurl.com/archive/myjar.jar" 
    codebase="http://myurl.com/classes"&gt;
      no applet
  &lt;/applet&gt;
  &lt;/body&gt;    
  &lt;/html&gt;
  </code></pre>
  
  <p>Main class is situated in <a href="http://myurl.com/archive/myjar.jar">http://myurl.com/archive/myjar.jar</a> and runtime classes are situated in <a href="http://myurl.com/classes">http://myurl.com/classes</a>. </p>