URLClassLoaders don't add class files directly. Instead, they should add the dir that the class file lives in and the class file should be in subfolder(s) matching its package. The docs have been wrong and this feature never actually worked.