java get directory of running jar code example
Example: java get jar execution directory
return new File(MyClass.class.getProtectionDomain().getCodeSource().getLocation()
.toURI()).getPath();
return new File(MyClass.class.getProtectionDomain().getCodeSource().getLocation()
.toURI()).getPath();