Possible Duplicate:
Failing to execute the jar file using java -jar command
I was working on a project in NetBeans and was able to compile without any errors but when I tried to run the sample.jar file by double clicking on it, all I got was an error from the JVM:
A Java Exception has Occurred
So I tried running from command prompt using
prompt>java -jar sample.jar
and I got the following error
Exception in thread "main" java.lang.NullPointerException
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Can anyone help with this?