Java tutorial
//package com.java2s; import java.lang.reflect.Method; import java.net.URL; import java.net.URLClassLoader; public class Main { private static Method initAddMethod() { try { Method add = URLClassLoader.class.getDeclaredMethod("addURL", new Class[] { URL.class }); add.setAccessible(true); return add; } catch (Throwable e) { throw new RuntimeException(e); } } }