How to make a runnable jar file?

前端 未结 3 2021
旧时难觅i
旧时难觅i 2020-11-29 12:17

There was a program that I used that made runnable .jar files.. All the ones I\'m finding now are ones that make .exe files.. I remember it also has the option to make the f

3条回答
  •  天命终不由人
    2020-11-29 12:34

    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.

提交回复
热议问题