title: Failed to load main-class manifest attribute
body: <p>I created a simple applet to run on a web browser. i create  Jar file by running "C:\Program Files\Java\jdk1.6.0_21\bin\jar" cfv Project7Applet.jar *.class in a command prompt and then when i try to run the jar file i get the "failed to load main-class manifest attribute error" However i don't understand why this happens because in the command prompt when i create the jar file it says </p>
  
  <pre><code>added manifest
  adding: Project7Applet.class.....
  adding: Project7Panel.class...
  </code></pre>
  
  <p>here's my .html file</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Right Triangles&lt;/title&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
      &lt;h1&gt;Right Triangles&lt;/h1&gt;
      &lt;!--"CONVERTED_APPLET"--&gt;
  &lt;!-- HTML CONVERTER --&gt;
  &lt;object
      classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
      codebase = "http://java.sun.com/update/1.6.0/jinstall-6u21-windows-i586.cab#Version=6,0,0,7"
      WIDTH = 240 HEIGHT = 175 &gt;
      &lt;PARAM NAME = CODE VALUE = "Project7Applet.class" &gt;
      &lt;PARAM NAME = ARCHIVE VALUE = "Project7Applet.jar" &gt;
      &lt;param name = "type" value = "application/x-java-applet;version=1.6"&gt;
      &lt;param name = "scriptable" value = "false"&gt;
  
      &lt;comment&gt;
   &lt;embed
              type = "application/x-java-applet;version=1.6" \
              CODE = "Project7Applet.class" \
              ARCHIVE = "Project7Applet.jar" \
              WIDTH = 200 \
              HEIGHT = 125
       scriptable = false
       pluginspage = "http://java.sun.com/products/plugin/index.html#download"&gt;
       &lt;noembed&gt;
              &lt;p&gt;This applet requires version 1.5 or later of Java.&lt;/p&gt;
              &lt;/noembed&gt;
   &lt;/embed&gt;
      &lt;/comment&gt;
  &lt;/object&gt;
  
  &lt;!--
  &lt;APPLET CODE = "Project7Applet.class" ARCHIVE = "Project7Applet.jar" WIDTH = 240 HEIGHT = 175&gt;
  &lt;p&gt;This applet requires version 1.5 or later of Java.&lt;/p&gt;
  
  &lt;/APPLET&gt;
  --&gt;
  &lt;!--"END_CONVERTED_APPLET"--&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>