Java, problems with custom classloader
问题 i'm writing a custom class loader to load some of my classes (not all). Class loader are very simple: public Class loadClass(String className, boolean resolve) throws ClassNotFoundException { Class cls=findLoadedClass(className); if(cls!=null) { return cls; } // Search first for encrypted classes cls=decryptClass(className); if(cls==null) { // Then try with default system classloader cls=super.loadClass(className, resolve); } return cls; } And this is how i use it: // In my Launcher class