import from another java project in eclipse

2019-01-08 10:01发布

I'm working on two projects in eclipse and I would like to import some classes from project a to project b. What should I do?

Is there a way of doing it without adding the project to the build path ?

1条回答
Fickle 薄情
2楼-- · 2019-01-08 10:57

add project A to project B's build path.

Follow these steps:
Edits by @David B
Right click on project B's folder in eclipse --> properties --> build path --> projects --> add.
Now add project A

查看更多
登录 后发表回答