What does your batch file contain? Did you try reading this?
I actually did come across the same link but my jar cannot execute unless it has the src folder that has the .class files. when I use other people's jar file. I do not even see the .class files only just one .jar file to execute the program.
My batch file is basically a .txt file with these commands: Here's a picture of what is inside the .txt
On a side note I do not understand what "-cp" means.
I already written the manifest. then I tried this command java -jar NicholasGame.jar in the command prompt and it worked but for the average user this would be weird to do. If I execute my jar file without the src folder my application becomes like this.