What causes "Unable to access jarfile" error?
Fixed
I just placed it in a different folder and it worked.
I had encountered this issue when I had run my Jar file as
java -jar TestJar
instead of
java -jar TestJar.jar
Missing the extension .jar also causes this issue.