title: How to get classpath from classloader?
body: <p>I am using some third party code which when given a '-classpath' command line argument doesnt set the java.class.path, but instead just creates a classloader, adds all the urls for the items on the command line specified classpath to the classloader, and then sets it to be the context classloader.
  In a plugin class to this code that I have written, I get an instance of this classloader, and somehow need to use it to get back  the underlying classpath, so that I can use it in an invocation of JavaCompiler.getTask(...) and compile some other code on the fly.
  However there doesn't seem to be anyway to get the ClassPath from the ClassLoader, and as java.class.path is unset, I can't seem to access the underlying classpath that the application was initially invoked with...Any ideas?</p>