That's not a Java file. It's a JScript file. It's run by Windows Script Host which is WScript.exe by default, but can also be CScript.exe for console only output.
The error indicates there is a problem with the script itself. It's just a text file. You can open it with Notepad.
When you said you edited the "game file" are you talking about that script or some other file?