Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Analyze JAR dependencies in a Java project [closed]

I'm looking for a tool that will show me a graph of JAR dependencies in my Java project based on static analysis of the compiled byte code. Specifically, I'm trying to figure out if there are unused JARs that I can eliminate, but I'd also just like to get a better understanding of the dependencies that exist. I'm not using Maven.

Dependency Finder comes close, but it deals in packages rather than JARs and there doesn't seem to be any way to query it for JARs that have no dependents. Any recommendations? Free and open source preferred. Thanks!

like image 576
Rob H Avatar asked Dec 01 '10 16:12

Rob H


People also ask

How do I check the dependencies of a JAR file?

jar file. Use the -verbose:class option to find class-level dependencies or use the -v or -verbose option to include dependencies from the same JAR file.

How to check JAR dependencies in IntelliJ?

Analyze dependenciesFrom the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Modules | Dependencies. Right-click the necessary dependency and select Analyze This Dependency.

How to analyze dependencies in IntelliJ?

Analyze dependenciesFrom the main menu, select Code | Analyze Code | Dependencies. Alternatively, if you want to analyze a specific item, right-click it in the Project tool window and select Analyze | Analyze Dependencies. In the dialog that opens, specify the scope of files that you want to analyze.

What is jdeps in Java?

Description. The jdeps command shows the package-level or class-level dependencies of Java class files. The input class can be a path name to a . class file, a directory, a JAR file, or it can be a fully qualified class name to analyze all class files. The options determine the output.


1 Answers

See also JarAnalyzer which claims to:

... traverse through a directory, parse each of the jar files in that directory, and identify the dependencies between the jar files.

like image 105
David J. Liszewski Avatar answered Oct 19 '22 23:10

David J. Liszewski