package com.athena.chameleon.common.utils;
<BUG>import org.xeustechnologies.jcl.JarClassLoader;
public class ClasspathUtil {</BUG>
public static String lastAddedPath = "NONE";
public static void addPath(String path, JarClassLoader jcl) throws Exception {
<BUG>jcl.add(path);
lastAddedPath = path;</BUG>
}//end of addPath()

package com.athena.chameleon.common.utils;
import com.athena.chameleon.common.jcl.JarClassLoader;
public class ClasspathUtil {
public static String lastAddedPath = "NONE";
public static void addPath(String path, JarClassLoader jcl) throws Exception {
java.io.File file = new java.io.File(path);
java.net.URL url = file.toURI().toURL();
Class<?> urlClass = java.net.URLClassLoader.class;
java.lang.reflect.Method method = urlClass.getDeclaredMethod("addURL", new Class[] { java.net.URL.class });
method.setAccessible(true);
method.invoke(jcl, new Object[] { url });
lastAddedPath = path;
}//end of addPath()
