How to use classes from another project?

I have two Java projects inside Eclipse. Now I want to use the 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 causing this problem? Did I do something wrong? What should I do?

Thanks in advance.

Refresh . The problem was that the classes being imported were in the default package.

+4
source share
1 answer

Make sure that the source folder is set in the Project A build properties on the Order and Export tab.

+2
source

All Articles