Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package Dependency

I have a huge Java Application with numerous packages. Some of the classes in these packages have dependency on classes in other packages. Given a class, I want to know all the dependent classes on it and vice-versa. A GUI tool should be really helpful.

like image 748
user170008 Avatar asked Sep 08 '09 07:09

user170008


People also ask

What is a package dependency?

A dependency is another package that your package needs in order to work. Dependencies are specified in your pubspec. You list only immediate dependencies—the software that your package uses directly.

What is the difference between package and dependencies?

Basically a package is a pack with some features which fullfills some functionality of your app. Once you install any package using npm then the package is installed as a dependency in your app inside your package.

What is a dependency in package json?

The dependencies in your project's package. json allow the project to install the versions of the modules it depends on. By running an install command inside a project, you can install all of the dependencies listed in the project's package.

What is dependency package in Linux?

A dependency is defined as a file, component, or software package that a program needs to work correctly. Almost every software package we install depends on another piece of code or software to work as expected.


3 Answers

There's some useful tools described here for the (free) Eclipse IDE. There's also more info on dependency tools with a comparison against depfinder here.

like image 57
oxbow_lakes Avatar answered Oct 05 '22 22:10

oxbow_lakes


CDA - Class Dependency Analyzer is incredibly simple to use, and can help you visualize those dependencies between packages and classes.

CDA Screenshot

like image 38
VonC Avatar answered Oct 05 '22 23:10

VonC


I would also recommend Eclipse as there are various plugins for this task. For example ispace which can create a graphical representation of the package dependencies.

I general the Source code analyzer section of eclipse's market place has more plugins in that direction.

like image 27
Wolfgang Avatar answered Oct 06 '22 00:10

Wolfgang