Import my project class into project

I have a demo project called A that has a Class AA class. and I have another demo project called B having a class of class BB. My question is how can I import ClassBB into AA class ??????

+4
source share
3 answers

What you need to do is add project A to the build path of project B. Check this topic if you are working with eclipse: import from another java project into eclipse

right click on project folder b in eclipse -> properties -> build path -> projects -> add.

+11
source

Add project B to the build path. If you are using Eclipse. Right Click on Project->Java Build Paht->Projects->Add

+1
source

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

0
source

Source: https://habr.com/ru/post/1434205/


All Articles