jar from folder code example
Example: java folder of jar
return new File(MyClass.class.getProtectionDomain().getCodeSource().getLocation()
.toURI()).getPath();
return new File(MyClass.class.getProtectionDomain().getCodeSource().getLocation()
.toURI()).getPath();