I am searching for a .class file inside a bunch of jars.
jar tf abc.jar
works for one file. I tried
find -name \"*.jar\" | xa
I don't see the necessity for using exec, this worked for me in Cygwin on Windows:
find . -name "*.jar" | while read jarfile; do unzip -l $jarfile | fgrep "foo" ; done