Wednesday 7 May 2008

Finding a jar containing a class

I found a nice script that searches through all of your jar files and finds which jars have a particular class. It is a shell script:

mati@mati-ubuntu:~/.m2/repository$ find . -name *.jar -exec csh -c ' (jar tvf $1 | grep org.springframework.jdbc.UncategorizedSQLException) && echo "======= found in $1" ' '{}' \;

No comments: