Using class from another project in java

90 Views Asked by At

I am working on a java project A which is using a class from project B. I added project B in the build path of Project A, I am getting error at compile time for the classes I have used from project B but when I run project A it is showing error ClassNotFound error for the dependencies of project B.

Is there any way I can solve this without adding all the dependencies of project B in build path of project A ? Both Project A and B are maven project.

0

There are 0 best solutions below