File file = new File("*.jar");URLClassLoader loader = new URLClassLoader(new URL[] { file.toURI().toURL() });ClassLoader contextLoader = Thread.currentThread().getContextClassLoader();urlList = new ArrayList();// add jar file paths to the listurlList.add(""); // give the path to the jar file for ex: "*.jar" CLASS_LOADER = new URLClassLoader(getURL(urlList), contextLoader);