How to connect a project to another in java via eclipse?

advertisements

I have a requirement,where in which if i click on a particular link from the main project,the eclipse has to connect to a different sub project,perform the desired action,return the action performed to the main project,and main project renders the desired result,is there any way to do it?


You could do it in several different ways, first is simply to define a dependency on a different project that you have in your workspace:

Eclipse - How to give dependency between projects?

Then there is of course gradle and maven like ways to define dependencies:

Maven: Maven jar dependencies and relations

Gradle: http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html