title: java- jar file does not run directly in windows, but runs through command prompt
body: <p>I am trying to run a desktop java app on a Windows 2008 Server based PC.</p>
  
  <p>While I can run the program through command prompt viz. java -jar filename.jar, when I double click on the jar file I get an error message "Could not find the main class. Program will now exit".</p>
  
  <p>I am using Netbeans v7.0.1 on Windows, to develop this application.
  Kindly clarify on how to run the app directly on double clicking its icon...</p>