You must determine your dependency on Project A to Project B.
In eclipse, right-click on project A and select "Propeties". Then, in the Java build Path, select the Project tab. Click the "Add" button and select project B. Confirm and you can import class BB into class AA
source share