-2

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?

user3535687
  • 17
  • 1
  • 6
  • import the package, instantiate it's class and call it's method(s). – Stultuske Jan 13 '15 at 11:10
  • possible duplicate of [How to reference a different Java project in Eclipse](http://stackoverflow.com/questions/10090829/how-to-reference-a-different-java-project-in-eclipse) – Pablo Gallego Falcón Jan 13 '15 at 11:17
  • I wonder what Eclipse has to do with this? Eclipse is only an IDE; when you're doing carpentry you also don't ask "so how do I make my workbench open a door?" – Gimby Jan 13 '15 at 12:23

2 Answers2

2

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

Community
  • 1
  • 1
ehoberg
  • 21
  • 2
0

Either make one project a library and use that, or use an automated build system like Gradle or Jenkins

Ieuan
  • 1,140
  • 1
  • 12
  • 27