How to make a runnable jar file?

The command line

java -jar file.jar

Will run your jar file if it has a Main-Class defined as explained here.

You can use that command in a shell script.

Leave a Comment