throw new RuntimeException("Cannot create classLoader from classpath entry " + entry);
final IllegalArgumentException illegalArgEx = new IllegalArgumentException( "Cannot create classLoader from classpath entry " + entry); illegalArgEx.initCause(ex); throw illegalArgEx;
    private ClassLoader createClasspathLoader(Path classpath)    {        final String[] cpEntries = classpath.list();        final URL[] cpUrls = new URL[cpEntries.length];        for (int i = 0; i < cpEntries.length; i++)        {            String cpEntry = cpEntries[i];            File entry = new File(cpEntry);            try            {                URL url = entry.toURL();                cpUrls[i] = url;            }            catch (MalformedURLException e)            {                throw new RuntimeException("Cannot create classLoader from classpath entry " + entry);            }        }        final URLClassLoader classPathLoader = new URLClassLoader(cpUrls);        return classPathLoader;    }