Skip to content

Instantly share code, notes, and snippets.

@marcotc
Created October 13, 2015 21:09
Show Gist options
  • Save marcotc/8793899576a497d2c717 to your computer and use it in GitHub Desktop.
Save marcotc/8793899576a497d2c717 to your computer and use it in GitHub Desktop.
Get class location in Scala
val klass = classOf[java.lang.Object]
val loc = ClassLoader.getSystemClassLoader.getResource(klass.getName().replace('.', '/') + ".class").toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment