Advertisement
Guest User

20016 Exam 2 Question 4

a guest
Nov 23rd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Racket 0.34 KB | None | 0 0
  1. ile xrunjar = new File(XRun.class.getProtectionDomain().getCodeSource().getLocation().getPath());
  2.  
  3.     // xrun.jar is noli-nise/Santorini/artifacts/xrun.jar
  4.     // parent of xrun.jar is noli-nise/Santorini/artifacts
  5.     // parent of parent of xrun.jar is noli-nise/Santorini
  6.     String baseDir = xrunjar.getParentFile().getParentFile().getPath();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement