title: "Could not find the main class" when double-clicking .jar file
body: <p>First: I realize that this issue should be quite simple and lots of people seem to have experienced it. However, it appears my issue may be <em>slightly</em> different from existing posts.</p>
  
  <p>I'm using NetBeans to compile a Java application. When it's done building, the output goes into the dist\ folder correctly. The jar file is present there. If I go to the command line, navigate to that folder, and call the following:</p>
  
  <p>java -jar Prosperity.jar</p>
  
  <p>everything works fine. Obviously the name of the application is Prosperity. The following command also works fine:</p>
  
  <p>javaw -jar Prosperity.jar</p>
  
  <p>However, double-clicking the .jar file gives the message: "Could not find the main class:", and then gives the path to the .jar file. I've checked a hundred times that the META-INF folder exists inside the .jar file, and that within it there exists a MANIFEST.MF with the correct main class name. I have also checked that the main class (App.class) .class file exists inside the .jar file.</p>
  
  <p>So the question is: what's the difference between double-clicking a file and running javaw on it? It's getting really frustrating that it won't just run!</p>
  
  <p>Thanks for any direction you can give me, I'm tearin' my hair out here!</p>