public static void addToClasspath ( final File file , final ClassLoader classLoader ) { checkNotNull ( "file" , file ) ; try { addToClasspath ( file . toURI ( ) . toURL ( ) , classLoader ) ; } catch ( final MalformedURLException e ) { throw new RuntimeException ( e ) ; } }
Adds a file to the classpath .