I have never seen a software be released as jar, so how can I make a software be released as exe too?

后端 未结 5 1354
执念已碎
执念已碎 2020-12-09 23:33

Is everybody thinking that everybody else doesn\'t release softwares as jar and then releases softwares as exe too?

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 00:08

    You can do it yourself by writing a short (C ?) program like this:

    //run tests here
    system("java -jar my_file.jar");
    

    But you will need to create a version of this executable for each Operating System.

提交回复
热议问题