Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Useful when you have class collisions in your classpath.
- ```
- Class<?> clazz = ...;
- CodeSource src = clazz.getProtectionDomain().getCodeSource();
- if (src != null) {
- System.out.println(src.getLocation().getPath());
- }
- ```
Add Comment
Please, Sign In to add comment