Displaying the classpath in Jython
While fighting to get my classpath correct in Jython, I decided I needed to see what it was. Inspired by this post, here is how you display the classpath in Jython.
import java.lang
import java.net.URL;
import java.net.URLClassLoader;
sysClassLoader = java.lang.ClassLoader.getSystemClassLoader()
urls = sysClassLoader.getURLs();
for url in urls:
print url.getFile()