Skip to content

Instantly share code, notes, and snippets.

@peijiehu
Created October 29, 2014 18:07
Show Gist options
  • Save peijiehu/aa6e84162d0034b86152 to your computer and use it in GitHub Desktop.
Save peijiehu/aa6e84162d0034b86152 to your computer and use it in GitHub Desktop.
Print out currentproject classpath
cl = ClassLoader.getSystemClassLoader();
URL[] urls = ((URLClassLoader)cl).getURLs();
for (URL url: urls) {
System.out.println(url.getFile());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment