Code example for File

Methods: toURI

0
		new ServerSocket(12345).close();
	} 
 
	private static URLClassLoader createGarbageCollectableClassLoader(File binDirectory) throws Exception {
		ClassLoader noParent = null;
		return new URLClassLoader(new URL[]{ binDirectory.toURI().toURL() }, noParent);
	} 
 
}