Adding a reference between Eclipse Java projects

后端 未结 2 570
暖寄归人
暖寄归人 2020-12-07 00:22

I have two Java projects in an Eclipse workspace, and I would like to use a class from one of them in the other.

How can I add a reference between them? I\'m looking

2条回答
  •  一向
    一向 (楼主)
    2020-12-07 01:01

    Assuming you are using Eclipse...

    Right click the project -> Properties -> Java Build Path -> Projects tab

    ...which will allow you to force required projects on the project in questions build path.

提交回复
热议问题