I have created a project using netbeans. It runs perfect when run from netbeans, i.e by right clicking on the project folder, doing a clean and build and then clicking run. The jar file get created into the dist folder.
When i double click on the jar file, it says: Could not find the main class. Program will exit.
How can i run this JAR file without using netbeans ?