*/
public static void add(File f)
throws IOException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
// f = f.isDirectory() ? f : f.getParentFile();
if (f.isDirectory()) {
File[] jarList = f.listFiles(new JarFilter());
//the list of files in the jar
for (File jar : jarList) {
if (jar.isFile()) {
add(jar.toURI().toURL());