Skip to content

Instantly share code, notes, and snippets.

@miyakawataku
Created October 25, 2011 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miyakawataku/1311835 to your computer and use it in GitHub Desktop.
Save miyakawataku/1311835 to your computer and use it in GitHub Desktop.
Output urls in the classpath
import java.net.URLClassLoader;
import java.net.URL;
class Classpath {
public static void main( String[] args ) {
URLClassLoader ucl = (URLClassLoader) Classpath.class.getClassLoader();
for ( URL url : ucl.getURLs() ) {
System.out.println( url );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment