c0d3x
c0d3x

Reputation:

How to use classes from another project?

I have got two Java projects inside Eclipse. Now I want to use classes from project A in project B. I added project A to the build path of project B. But the classes are not available in project B.

What could be the reason for that problem? Did I do something wrong? What and how should I do?

Thanks in advance.

Update: The problem was that the classes to be imported were in the default package.

Upvotes: 5

Views: 7712

Answers (1)

Carlos
Carlos

Reputation: 1806

Verify if in the build properties of Project A under the "Order and Export" tab you have the source folder checked.

Upvotes: 2

Related Questions