I have .jar file generated from three sources:
- Netbeans
- Eclipse (using export)
- From cmd (jar cvmf MANIFEST.MF output.jar input1.class input2.class ...)
In the last process, I created a blank MANIFEST.MF and then the command. When the file got archived in .jar, I opened it with WinZip and edited the MANIFEST.MF. I added Main-Class:input1.
All three sources run fine on cmd through java -jar output.jar. But nothing happens on double-clicking them.
I have tried this solution as well. I also have set the default for .jar as javaw.exe but still does not run.
How to fix this?