This must be a very basic question for Java developers, but what is the best way to find the appropriate jar file given a class name?
For example, give
Printing the list as I go so I can see what I'm checking. Mostly I'm looking in a lib/app directory, but you can substitute a locate for the find.
e.g.
for jar in $(find some_dir/lib -name "*.jar" ); do echo -------------$jar------------------- jar -tf $jar | grep TheNameOfTheClassImLookingFor done