views:

95

answers:

1

I have multiple Java projects in Eclipse. I would like to reuse some classes in my new project from my old project. What is the best way to do that in Eclipse?

I.e. is it possible to add another "project folder" to the build-path for my new project?

+9  A: 

Yes, in the build path dialog (Build Path > Configure Build Path...), go to the Projects tab, and add the project dependencies.

On the included project, you can use the Order and Export tab to select, which parts of your source folders and libraries to export to dependent projects.

Chris Lercher