Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import a class of different project into my project

Tags:

java

android

I have a demo project-named A having a class Class AA. and I have another demo project-named B having a class Class BB. My question is how can I import ClassBB in class AA??????

like image 621
Syamantak Basu Avatar asked Dec 15 '22 19:12

Syamantak Basu


1 Answers

What you have to do is to add project A to project B's build path. Check this thread if you are working with eclipse: import from another java project in eclipse

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

like image 90
Kyriakos Avatar answered Dec 29 '22 23:12

Kyriakos