Skip to content

Instantly share code, notes, and snippets.

@mvitaly
Last active December 15, 2015 19:39
Show Gist options
  • Save mvitaly/5313099 to your computer and use it in GitHub Desktop.
Save mvitaly/5313099 to your computer and use it in GitHub Desktop.
Get location of a .class file in java
clazz.getProtectionDomain().getCodeSource().getLocation();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment