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