Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ile xrunjar = new File(XRun.class.getProtectionDomain().getCodeSource().getLocation().getPath());
- // xrun.jar is noli-nise/Santorini/artifacts/xrun.jar
- // parent of xrun.jar is noli-nise/Santorini/artifacts
- // parent of parent of xrun.jar is noli-nise/Santorini
- String baseDir = xrunjar.getParentFile().getParentFile().getPath();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement