title: Java jar - no main manifest attribute
body: <p>I'm aware that jar files should have a manifest.mf <em>Main-Class:</em> attribute in order to have an entry point and make the jar file runnable.  Now, I have a jar file that I've built per below.  The classes are all part of the burrito package.  My MANIFEST.MF file looks like:</p>
  
  <pre><code>Manifest-Version: 1.0
  Ant-Version: Apache Ant 1.9.1
  Created-By: 1.7.0_51-b13 (Oracle Corporation)
  Class-Path: 
  X-COMMENT: Main-Class will be added automatically by build
  Main-Class: burrito.Main
  </code></pre>
  
  <p>, and when I try to build and execute via the following:</p>
  
  <pre><code>jar -cvf Burrito.jar Customer.class Main.class Server
  .class Store.class MANIFEST.MF
  *added manifest
  adding: Customer.class(in = 2800) (out= 1424)(deflated 49%)
  adding: Main.class(in = 1147) (out= 757)(deflated 34%)
  adding: Server.class(in = 3954) (out= 2094)(deflated 47%)
  adding: Store.class(in = 3950) (out= 2190)(deflated 44%)
  adding: MANIFEST.MF(in = 203) (out= 158)(deflated 22%)*
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>Burrito.jar
  
  *java -jar Burrito.jar
  no main manifest attribute, in Burrito.jar*
  </code></pre>
  
  <p>I've tried various ways, also trying the -m switch (cvfm).  I've attempted the following:</p>
  
  <pre><code>java -cp Burrito.jar burrito.Main
  </code></pre>
  
  <p>as well as</p>
  
  <pre><code>java -cp Burrito.jar Main
  </code></pre>
  
  <p>, which both tell me <em>Error: Could not find or load main class</em></p>
  
  <p>I've been poring over forums, and I can't seem to 'Google' my way to a solution here.  Of course the Netbeans jar works, but I need to build my own.  I've peeked at the Netbeans jar, and I see that I have two folders, burrito and META-INF.  Of course, the manifest file is in the META-INF folder, and the burrito folder contains the class files.  I'm not sure exactly to mimic this, and I would be happy to simply get this program to run. </p>
  
  <p>Any pointers/hints?</p>