How do I figure out what CLASSPATH the system classloader is using (for debugging)?
First, a clarification: The "system classloader" is a series of protected final methods implemented in the abstract class java.lang.ClassLoader. You can't instantiate this class directly, and it's up to your JRE to implement its base functionality. Some documentation calls this the "default classloader," too.
Second, a warning: when you're debugging this way, you really need to be sure that you want to know what classloader it is you're actually debugging. The property we use isn't necessarily used by any other classloader.
Finally, the answer:
String cp = java.lang.System.getProperty("java.class.path");