Do not report errors using screenshots.
Always post the log or the error.
Probably your files have a wrong user owner (different from the one used to launch the JAR) or files permissions.
It's a known issue in Java.
Anyway I never tested what you're doing so I have no other idea about what could be the cause other than the ones I provided before.