public static URLClassLoader newInstance (URL[] urls, ClassLoader parent)

Creates a new instance of URLClassLoader for the specified URLs and parent class loader. If a security manager is installed, the loadClass method of the URLClassLoader returned by this method will invoke the SecurityManager.checkPackageAccess method before loading the class.

Parameters:
urls    the URLs to search for classes and resources
parent    the parent class loader for delegation

Returns:  the resulting class loader

Exceptions:
NullPointerException    if urls is null.