How to make a runnable jar file?

前端 未结 3 2031
旧时难觅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:40

    You can create a runnable jar using NetBeans IDE or Eclipse IDE by just proving the Main class to run.Rest of the things it will take automatically.That class must be having a main() method in it.Then you can run that jar file using java -jar yourjarfile.jar

提交回复
热议问题