I am trying to make my main executable jar file copy itself to another location.
How can I do this?
return new File(MyClass.class.getProtectionDomain().
getCodeSource().
getLocation().
getURI().
getPath()).getName();
will return a full name