Here you can find the source of getAvailableClassPathInfo(final ClassLoader classLoader)
private static String getAvailableClassPathInfo(final ClassLoader classLoader)
//package com.java2s; //License from project: Apache License import java.net.URLClassLoader; import java.util.Arrays; public class Main { private static String getAvailableClassPathInfo(final ClassLoader classLoader) { if (!(classLoader instanceof URLClassLoader)) { return "-"; }//from w w w .j a v a 2s .c o m final URLClassLoader cl = (URLClassLoader) classLoader; return Arrays.toString(cl.getURLs()); } }