title: ClassNotFound exception when loading applet in Chrome
body: <p>I'm having a hard time getting a Java applet to run in Chrome. The class loader can't find the class, even though the it works fine in Firefox, Opera and Safari.</p>
  
  <p>Here's my test applet class (I even took out the package declaration to keep it simple):</p>
  
  <pre><code>import java.awt.Graphics;
  import java.applet.Applet;
  
  public class Test extends Applet
  {
      public void init() { repaint(); }
  
      public void paint( Graphics g ) {
          g.drawOval(10, 10, 30, 50);
          g.drawLine(15, 30, 22, 32);
          g.fillOval(28, 28, 7, 5);
          g.drawArc(15, 20, 20, 35, 210, 120);
      }
  }
  </code></pre>
  
  <p>Here's the minimalistic test page:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;&lt;head&gt;
    &lt;meta charset="utf-8"/&gt;
    &lt;title&gt;Test&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
    &lt;p&gt;
      &lt;object type="application/x-java-applet" width="50" height="70"&gt;
        &lt;param name="code" value="Test" /&gt;
        Test failed.
      &lt;/object&gt;
    &lt;/p&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>Here's the stack trace:</p>
  
  <pre><code>java.lang.ClassNotFoundException: Test
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:252)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:687)
      at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1498)
      at java.lang.Thread.run(Thread.java:680)
  </code></pre>
  
  <p>I've compiled the class with <code>javac Test.java</code>, and I put the .class file in the same folder as the .html file. Again, this runs fine in both Firefox, Safari and Opera, so why not in Chrome?</p>
  
  <p>I've tried creating a jar and adding <code>&lt;param name="archive" value="Test.jar" /&gt;</code>, but that didn't help.</p>
  
  <p>Oh, and while I'm asking stuff: Is there an official spec listing the <code>&lt;param&gt;</code> parameters one can use with applets in <code>&lt;object&gt;</code> tags? It's not in the HTML5 spec, which makes sense, but Oracle seems to favor the old abandoned <code>&lt;applet&gt;</code> tag and I need to use strict HTML5.</p>
  
  <h2>Environment</h2>
  
  <p>MacBook Pro running OS X 10.7.1</p>
  
  <pre><code>java version "1.6.0_26"
  Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
  Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
  </code></pre>
  
  <p>Google Chrome 13.0.782.220</p>