Created
March 28, 2017 06:58
-
-
Save robrant/8b2fb0dcbbf3c114d060cb5c32b0c8fd to your computer and use it in GitHub Desktop.
Print the classpath from within code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inspect the classpath - used during debugging | |
//ClassLoader 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