How to run Java programs by clicking on their icon on Windows?

后端 未结 12 2679
太阳男子
太阳男子 2020-12-01 22:52

I have written a Java program that uses Java swing library. Now I would like to execute this program by double clicking on the executable file on Windows just like any other

12条回答
  •  情书的邮戳
    2020-12-01 23:36

    Right click to your "project" in eclipse and select "export" then choose "Java->Runnable Jar File" select your project name and finish.

提交回复
热议问题