Have you examined the contents of the JAR file, including the contents of the manifest.mf files, to determine the difference? Another thing to try is running the JAR file the command line:
java -jar fromnetbean.jar
Then if there are any error they will be printed to stdout.
Most likely, the manifest.mf file in the JAR that NetBeans built is missing the Main-Class entry.
(The above are debugging suggestions and a guess - I never let NetBeans or Eclipse compile or package apps, that job I delegate to
Maven or Ant).