ClassPathHack { public static void addFiles(List<String> files) throws IOException { for (String jar : files) { try { addFile(jar); } catch (Exception e) { System.err.println(e.getMessage()); } } }  static void addFile(String s); static void addFiles(List<String> files); static void addFile(File f); static void addJarFiles(String jarDir); static void addFiles(String jarDir);  }
@Test public void testAddFiles_1() throws Exception { String jarDir = System.getProperty("user.home"); ClassPathHack.addFiles(jarDir); }