/** * Tries to find and load the specified class. * @param name fully qualified name of the class to load. * @return the requested <code>Class</code> if found, <code>null</code> otherwise. * @throws ClassNotFoundException if the requested class was not found. */ @Override protected Class<?> findClass(String name) throws ClassNotFoundException { AbstractFile file; // File containing the class' bytecode. // Tries to locate the specified class and, if found, load it. if((file = findResourceAsFile(name.replace('.', '/') + ".class")) != null) { try {return loadClass(name, file);} catch(Exception e) {} } throw new ClassNotFoundException(name); } }