@nanoulis I had your same problem too, and it seemed that nobody would help me. I found this though and it solved my problem. What's happening is that the program is trying to run java as though it is an actual command in command prompt, like "cd" or "dir". What you need to do is follow this link and make the "bin" folder from your Java JDK folder a folder that the command prompt recognizes and searches through when it is met with an unknown command. Since it doesn't know what the command java is, it will then search through your bin folder, find the java.exe, and run the program through it. Make sure that you don't copy the actual java.exe file into the same directory as your batch files, it will recognize the java.exe, but it will give you errors. I know because I've tried.
Just in case you don't have the latest Java JDK installed, here is a link to it.