title: jar file created in netbeans not executing
body: <p>I have written some GUI program in netbeans which makes use of swing and it's working fine.I created jar file by right-clicking on project>clean and build and all the resources are included in it from project properties.The jar file in dist folder is executing through commandline using</p>
  
  <pre><code>java -jar mig_log.jar
  </code></pre>
  
  <p>but whenever I double click the jar file it says "Could not find the main class.Program will exit".
  I referred these links but nothing worked out :
  <a href="https://stackoverflow.com/questions/602537/producing-executable-jar-in-netbeans">producing executable jar in netbeans</a></p>
  
  <p><a href="https://stackoverflow.com/questions/3001497/java-could-not-find-the-main-class?lq=1">Could not find the main class</a></p>