I have this code which reads all the files from a directory.
File textFolder = new File(\"text_directory\"); File [] texFiles = textFolder.listFiles
There are two very useful utilities both called JarScan:
www.inetfeedback.com/jarscan
jarscan.dev.java.net
See also this question: JarScan, scan all JAR files in all subfolders for specific class