java类加载

public class ClassLoaderTest {

    public static void main(String[] args) {
        
        String boot = System.getProperty("sun.boot.class.path");
        System.out.println(boot);

        String ext = System.getProperty("java.ext.dirs");
        System.out.println(ext);

        String app = System.getProperty("java.class.path");
        System.out.println(app);

        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        while (cl != null) {
            System.out.println(cl);
            cl = cl.getParent();
        }
        
        System.out.println(ClassLoader.getSystemClassLoader());
        
        
    }
}


你可能感兴趣的:(java类加载)