How to make an executable JAR file?

后端 未结 5 1330
孤独总比滥情好
孤独总比滥情好 2020-11-21 23:41

I have a program which consists of two simple Java Swing files.

How do I make an executable JAR file for my program?

5条回答
  •  遇见更好的自我
    2020-11-22 00:04

    In Eclipse you can do it simply as follows :

    Right click on your Java Project and select Export.

    Select Java -> Runnable JAR file -> Next.

    Select the Launch Configuration and choose project file as your Main class

    Select the Destination folder where you would like to save it and click Finish.

提交回复
热议问题