After it begins to execute, is your program using relative paths to input files that might be different?
Are you an administrator on the computer and/or running eclipse as administrator? You could try running the command prompt as administrator to confirm that it isn’t a permissions issue.
2
solved executing programs from command prompt [closed]