Tools for finding all the dependencies in Java banks

Are there any tools that can be provided with the class path or folder and search through all .jar files that look for links to a specific class?

This would save me on the day of the search to resolve this problem .

In my case, I needed to find out where the link to the class came from, due to the fact that JBoss did not start correctly due to NoClassDefFoundError. I guess I'm looking for this:

java -jar magicbullet.jar /path/to/search com.myproject.DodgyClass
Searching...
com.problematic.Otherclass in /path/to/search/dodgy.jar implements com.myproject.DodgyClass

Or similarly. If not, I will write one.

+5
source share
3 answers
+3

Linux ( Cygwin Windows) script https://gist.github.com/980697.

: findclass.sh <directory> <className>

: findclass.sh . ClassName ( " ClassName jars/wars/ears/sars, " )

+3

Google "JarAnalyzer" , , ( , D)

0

All Articles