Return to Snippet

Revision: 12079
at March 1, 2009 13:16 by Dorgendubal

Initial Code
find -name "*.jar" -exec grep "CLASSNAME" {} \;
find -name "*.jar" -exec grep "org/junit/runners/Parameterized.class" {} \;

Initial URL

Initial Description
Useful when you have to deal with ClassNotFoundException. The command looks for all jar in the current directory and any sub-directory, and checks if the jar contains the specified class. The command lists all matching jars.

Initial Title
Find in which jar a class is defined

Initial Tags
class, Bash, java

Initial Language