2

I have two projects in Eclipse's workspace Project A & Project B.

I want to add Project B to A's buildpath but no matter what I do it doesn't work. I've looked it look and none of the answers work for me. Although exporting B as a jar and adding the jar to the buildpath works I will need to update B's code and I do not want to have to constantly export it as jar everytime.

I've tried adding B as a class folder but it fails to work. In the jar import bproj.BMain; works but as a class folder it does not.

How can I add B to A's buildpath?

1
  • This question is crisp clear.Why flags? Commented Jan 10, 2016 at 9:40

1 Answer 1

2

On Eclipse Mars, open any file from Project B and on the menu, go to Project > Properties > Java Build Path > Projects > Add

From there, you:

can add B to A's buildpath

by selecting Project A from the list.

Nice username, by the way :-)

Sign up to request clarification or add additional context in comments.

2 Comments

I swear I tried that! But yeah it worked this time... thanks.
Awesome, glad to have helped.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.