I have a project \"A\" and I need to call a class \"c\" from another project \"B\".
I have done the following. Click in \"A\" -->Properties -->Build Path --> and in
If B is in the same workspace and alos open you have to put int in "Projects" not is "Source". If you want to make A "more" independent, you have to export B.jar and the add it to "Libraries"
Put the Project B on the Build path, then do a Clean project from Project Menu option... and then use it..
-
Click in "A" -->Properties -->Build Path --> Projects ---> Add the Project --->Ok
Also consider to use maven. Its very useful if you are having multi-module projects. Just add the dependencies of abother project and maven will take care of rest..!
You should add another project in "Project" tab, or add class folder of the project in "Libraries" tab.
You need to add project B to the Run configuration used by project A. In the menu Run -> Run configurations... , add the project B in the tab 'classpath' of your run configuration.
create project "A" as jar and add this jar in your project "B" build path.then you can call which class you want and import that class package name with calss name.