title: Failed to load Main-Class manifest attribute
body: <p>I know this is a very common question, but I tried googling and got no helpful result.
  I'm trying to make a jar out of my "Main.class" file (made in NetBeans, but I'm not trying to make the jar with it)</p>
  
  <p>I ran this command:</p>
  
  <pre><code>D:\NetBeans\trovanum3\build\classes\trovanum3&gt;jar cf trovanum.jar *.class
  </code></pre>
  
  <p>And a .jar file spawned in that folder. I thought that would've worked, but it won't run.</p>
  
  <p>I tried opening the jar file with an archive opener and inside it are the "Main.class" file and a "META-INF" folder containing a file named "MANIFEST.MF"
  The file contains this:</p>
  
  <pre><code>Manifest-Version: 1.0
  Created-By: 1.6.0_22 (Sun Microsystems Inc.)
  </code></pre>
  
  <p>What could be the problem?</p>