Hello everyone
I have written a simple program that displays Hello. Then I have created its jar file using the following command:
jar -efc Hello Hello.jar Hello.class
The jar file runs well in the command prompt by using the following command:
java -jar Hello.jar
But when I double click the jar file, nothing happens. No output is displayed. How can I make the jar file run simply by double clicking it?