deinocheirus
deinocheirus

Reputation: 1873

Making one project with dependencies stand-alone in Eclipse (Java)

I have a Java project in Eclipse which has dependencies to other projects in my workspace. I'd like to find out what those dependencies are and copy them to my project in question, so that it doesn't need those other projects any more.

Is there a quick way to do this?

Upvotes: 0

Views: 87

Answers (3)

Andrey Adamovich
Andrey Adamovich

Reputation: 20683

You can go to project properties window and examine the "Java Build Path" page or "Project References" page.  

Also you can examine the .project and .classpath file for first-level dependencies.

Upvotes: 2

codethulhu
codethulhu

Reputation: 3996

You could start closing those other projects and see if you get errors in building your main application.

If you're interested in how to manage inter-project dependencies, the common tool for java application dependency management is Apache's Maven.

Upvotes: 1

Evgheni Crujcov
Evgheni Crujcov

Reputation: 470

Export those projects as library jars, and physically copy them to your main project's /lib folder.

Upvotes: 0

Related Questions