@@ -0,0 +1,1645 @@
+/*%0A * Copyright 2012 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *%0A * Revision History%0A * Author%09%09%09Date%09%09%09%09Description%0A * ---------------%09----------------%09------------%0A * Sang-cheon Park%092012. 9. 19.%09%09First Draft.%0A */%0Apackage com.athena.chameleon.common.utils;%0A%0Aimport java.io.File;%0Aimport java.lang.reflect.Method;%0Aimport java.net.URL;%0Aimport java.net.URLClassLoader;%0A%0A/**%0A * %3Cpre%3E%0A * Runtime %EC%8B%9C Classpath%EB%A5%BC %EB%8F%99%EC%A0%81%EC%9C%BC%EB%A1%9C %EC%B6%94%EA%B0%80%ED%95%98%EA%B8%B0 %EC%9C%84%ED%95%9C %EC%9C%A0%ED%8B%B8 %ED%81%B4%EB%9E%98%EC%8A%A4%0A * %3C/pre%3E%0A * %0A * @author Sang-cheon Park%0A * @version 1.0%0A */%0Apublic class ClasspathUtil %7B%0A%0A%09/**%0A%09 * %3Cpre%3E%0A%09 * ClassLoader%EC%97%90 %EC%A7%80%EC%A0%95%EB%90%9C path%EB%A5%BC %EC%B6%94%EA%B0%80%ED%95%9C%EB%8B%A4.%0A%09 * %3C/pre%3E%0A%09 * %0A%09 * @param path%0A%09 * @throws Exception%0A%09 */%0A%09public static void addPath(String path) throws Exception %7B%0A%09%09File file = new File(path);%0A%09%09URL url = file.toURI().toURL();%0A%09%09URLClassLoader urlClassLoader = (URLClassLoader) ClassLoader.getSystemClassLoader();%0A%09%09Class%3C?%3E urlClass = URLClassLoader.class;%0A%09%09Method method = urlClass.getDeclaredMethod(%22addURL%22, new Class%5B%5D %7B URL.class %7D);%0A%09%09method.setAccessible(true);%0A%09%09method.invoke(urlClassLoader, new Object%5B%5D %7B url %7D);%0A%09%7D//end of addPath()%0A%7D//end of ClasspathUtil.java

Add ClasspathUtil.java to adding new classpath at runtime.