Is there a command line tool that will crack open a JAR file and locate a particular .class file in it? Something that would let me walk a directory tree in search of which Jar(s) have a particular class like...
find . -name *jar -exec jaregrep -l "org.bob.PriceListViewUpdate" {} \;
REST/prices.jar
v2/REST/prices.jar
Something like this must exist. Where do I get it?
If you know what directory the jar is you can use grep
in linux. Run this command from a directory above the suspect jar files. It will tell you which jar file (or files) has it. I do this all the time when I'm looking for something in the mess of jars JBoss uses.
grep -rail --include=*.jar org.bob.PriceListViewUpdate
JWhich provides command-line tools to find the jar file which contains the resource you are searching for.
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