I'm trying to run a Java program that runs the tskill Windows command, but im getting the exception listed in the title. tskill is on the path when I run it from the command prompt. I'm running this program as a Java Application in Eclipse. I added c:\windows\system32 to the Path in eclipse, but the java program still can't find it. How do I fix this? How can I determine what path is set to in the java program?
try {
RunProcess.doExecuteCommand("tskill winword /A");
Thread.sleep(1000);
} catch (Throwable t) {
throw new GenerationException(t);
}
}