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.
source
share