Eclipse: share code among multiple projects

后端 未结 2 1318
失恋的感觉
失恋的感觉 2021-01-02 03:36

I have different projects in Eclipse (java me midlets) which all need to share code. Currently I duplicate things, but this is not ideal. What is the best way to do this? Th

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 04:13

    You can create a Java Project which will contain the shared code and have other projects reference it. When deploying you can pack this project as a separate jar file.

提交回复
热议问题