Create executable Jar file under Eclipse

后端 未结 2 1584
野趣味
野趣味 2020-12-03 21:51

I created a Java application and I want to create jar file for this application. This application imported other external jar files by Build Path>Add External Jar File. How

相关标签:
2条回答
  • 2020-12-03 22:11

    To create a new runnable JAR file in the workbench:

    1. From the menu bar's File menu, select Export.
    2. Expand the Java node and select Runnable JAR file. Click Next.
    3. In the Runnable JAR File Specification page, select a 'Java Application' launch configuration to use to create a runnable JAR.
    4. In the Export destination field, either type or click Browse to select a location for the JAR file.
    5. Select an appropriate library handling strategy.
    6. Optionally, you can also create an ANT script to quickly regenerate a previously created runnable JAR file.
    0 讨论(0)
  • 2020-12-03 22:25

    Right click on project which one you want to create executable jar

    -> Export -> Runnable jar 
    

    -> Select the Main class in "Launch Configuration" -> Export destination (your system path) -> Finish
    

    0 讨论(0)
提交回复
热议问题