title: "No Main Manifest Attribute" in ----.jar Netbeans
body: <p>I recently just started toying around with Maven in java. Time comes to test my project, it works fine in the NetBeans window, running the main class found in App.java (com.MyCompany.App), but when I try to run it from a command line I get an error:</p>
  
  <pre><code>java -jar fileName.jar
  </code></pre>
  
  <blockquote>
    <p>"No Main Manifest Attribute" in fileName.jar</p>
  </blockquote>
  
  <p>I have tried adding a manifest.mf file specifying what main is, I've also been into project properties and added it as the main file...</p>
  
  <p>What's going on?</p>