I write basic java programs for fun, and unfortunately I cannot run their jar files with double clicking. However, I can open jar files through terminal with no issue. could you please explain to me the issue and how to fix it? I reordered my screen and uploaded it on YouTube if you want to see what happens when I click on a jar file:
https://www.youtube.com/watch?v=Pyh5k2w_o1s
Thanks for all your suggestions.
CodePudding user response:
Try this solution:
https://stackoverflow.com/a/43881858/13257777
by script let use:
java -jar path_to_Lab15.jar
CodePudding user response:
Downloading a Java Runtime Environment can do the trick.
For future projects you may want to checkout Launch4j. It is a tool to convert your runnable .jar file to an .exe.