I want to find out which jar file contains a given class. I have many jar files in a directory to search. I tried:
find . -name '*.jar' -exec jar tvf {} \; | grep com.ibm.sslight
This returned the class files in the given package, but it did not return the name of the jar file the package was in.
How do I get the aboove command to also print the jar filename on the display along with the package names from the jar tvf output ?
Thanks
find . -name '*.jar' -exec jar tvf {} \; | grep com.ibm.sslight
This returned the class files in the given package, but it did not return the name of the jar file the package was in.
How do I get the aboove command to also print the jar filename on the display along with the package names from the jar tvf output ?
Thanks