Here you can find the source of dumpClasspath(ClassLoader loader)
public static void dumpClasspath(ClassLoader loader)
//package com.java2s; //License from project: Apache License import java.net.URLClassLoader; import java.util.Arrays; public class Main { public static void dumpClasspath(ClassLoader loader) { System.out.println("Classloader " + loader + ":"); if (loader instanceof URLClassLoader) { URLClassLoader ucl = (URLClassLoader) loader; System.out.println("\t" + Arrays.toString(ucl.getURLs())); } else/*from ww w .ja v a 2s. com*/ System.out.println("\t(cannot display components as not a URLClassLoader)"); if (loader.getParent() != null) dumpClasspath(loader.getParent()); } }