Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find project dependencies in eclipse? how eclipse builds the class path?

Tags:

eclipse

There is a project that in some way other project indirectly depends on. I'm trying to find the path of dependencies or the dependencies graph in eclipse but can't find a way.

any way to do that ?

like image 472
mice Avatar asked Sep 05 '11 15:09

mice


People also ask

What is Eclipse build path?

Build path is used by the compiler to resolve dependencies and build a project. Classpath is used during runtime when running a project in order to find necessary dependencies. Build path is configured on the Java Build Path property page of a project.

What is project dependency in Eclipse?

Each project (dependencies, etc.) must be able to be managed from within the Eclipse IDE without manually editing build.xml files. It must be possible for each project to export a build.xml Ant file such that. It can be used to build all appropriate targets from a command line using CVS and Ant.


1 Answers

Right-click the project, then select "Properties", then "Java Build Path". The tabs "Projects" and "Libraries" list what the project depends on. Note that the "Order and Export" tab alllows you to have indirect dependencies.

All the information here is saved in a file named .classpath in the project; if you want to find specific dependencies in a large workspace, then doing a text search over these files would be the fastest solution.

like image 70
Michael Borgwardt Avatar answered Oct 10 '22 21:10

Michael Borgwardt