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!
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With