I have Jar file which includes besides classes - folder with files. When i run a jar file on the other machine - the aim is to copy files from jar to some folder in that machine. Structure of jar:
/somepackage/
/MyFolder/
in code i do something like this:
copyDirectory("MyFolder", System.getProperty("user.home") + "\\myFolder");
it works only when i start program, but not outside jar.
Please help me to do it.