Here you can find the source of classForName(String className, ClassLoader classLoader)
public static Class<?> classForName(String className, ClassLoader classLoader)
//package com.java2s; //License from project: Apache License public class Main { /**/*w w w . j a v a 2 s . com*/ * returns Class.forName(className, true, classLoader). <br> * Throws a RuntimeExcepiton if the class is not found. * * @see {@link Class#forName(String, boolean, ClassLoader) */ public static Class<?> classForName(String className, ClassLoader classLoader) { try { return Class.forName(className, true, classLoader); } catch (ClassNotFoundException e) { throw new RuntimeException("failed to load class " + className, e); } } }