How can I execute a JAR file application with double click?

Viewed 105

Using Java 17 with Eclipse 2022-06 on Windows 11 I've made a sample application built with Maven and JavaFX.

After compiling it and creating a jar with Maven commands I can run the application by cmd typing: java -jar file_name.jar.

The application work fine but how do I execute it with double click?

0 Answers
Related