How do I build a Java project in Eclipse, to create an external JAR

后端 未结 5 1111
抹茶落季
抹茶落季 2021-01-30 04:32

I recently inherited a large software project written in Java. The last developer used Eclipse, so that\'s what I\'m using, but I can\'t figure out how to build anything. I don\

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-30 04:59

    File -> Export -> Export JAR File. Then select your project, press next twice, select the main class.

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    If you just want to run, open the main class and click the green arrow at the top.

    enter image description here

    If you just want to build class files, I believe that Eclipse automatically builds every time you save. You need to select Project -> Build Automatically

    enter image description here

提交回复
热议问题