I'm trying to make a jar file association patch for a friend of mine, and when I test the batch file on my computer and try to launch a jar file, I get an error saying Unable to access jar file. But when I execute the instructions manually on the command prompt, the application launches perfectly. Am I doing something wrong here?
Here are the instructions I'm using:
ftype jarfile="C:\Program Files\Java\jre1.8.0_25\bin\javaw.exe" -jar "%1" %* assoc .jar=jarfile