return new File(MyClass.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
(new File(".")).getAbsolutePath();