Created
August 25, 2014 13:44
-
-
Save crspiccin/ed8d1b5f8f32b7c4bed1 to your computer and use it in GitHub Desktop.
Get classloader libs
This file contains 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
// Get classloader libs | |
ClassLoader tcl = Thread.currentThread().getContextClassLoader(); | |
Enumeration<URL> roots = tcl.getResources(""); | |
for(;roots.hasMoreElements();){ | |
URL url = roots.nextElement(); | |
System.out.println("URL: " + url.getPath()); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment