Skip to content

Instantly share code, notes, and snippets.

@ekoontz
Created December 20, 2011 19:22
Show Gist options
  • Save ekoontz/1502838 to your computer and use it in GitHub Desktop.
Save ekoontz/1502838 to your computer and use it in GitHub Desktop.
Show your classpath within Clojure REPL.
(use 'clojure.pprint)
(import 'java.lang.Thread)
(-> (Thread/currentThread) (.getContextClassLoader) (.getURLs) (seq) (pprint))
@lwiechec
Copy link

lwiechec commented Nov 2, 2022

...unfortunately stopped working - .getContextClassLoader seem to return empty vector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment