Archive for January, 2006

How Many Classes are in that JAR?

Wednesday, January 4th, 2006

A nifty way to count how many classes are inside a .jar file:



jar tvf yourfile.jar | grep ‘\.class’ | wc -l



Of course, using any file extension in lieu of .class will do the same for others!