@ SuppressWarnings ( "static-method" ) protected ClassLoader createClassLoader ( Iterable < File > jarsAndFolders , ClassLoader parentClassLoader ) { return new URLClassLoader ( Iterables . toArray ( Iterables . transform ( jarsAndFolders , from -> { try { final URL url = from . toURI ( ) . toURL ( ) ; assert url != null ; return url ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } } ) , URL . class ) , parentClassLoader ) ; }
Create the project class loader .