C
Charlie Zhang
Want to call a simulator within Java using Runtime.exec(), but never succeed.
I can call the simulator in command line like:
C:/SimuDirctory/Simulator -q C:/SimuDirectory/SimuFile
Part of the code is:
Sting[] cmd = new String[3];
cmd[0] = "command.com";
cmd[1] = "/C";
cmd[2] ="C:/SimuDirctory/Simulator -q C:/SimuDirectory/SimuFile";
Runtime.getRuntime.exec(cmd);
Have spent several days on this bug, can anyone here help me?
Thanks in advance!
I can call the simulator in command line like:
C:/SimuDirctory/Simulator -q C:/SimuDirectory/SimuFile
Part of the code is:
Sting[] cmd = new String[3];
cmd[0] = "command.com";
cmd[1] = "/C";
cmd[2] ="C:/SimuDirctory/Simulator -q C:/SimuDirectory/SimuFile";
Runtime.getRuntime.exec(cmd);
Have spent several days on this bug, can anyone here help me?
Thanks in advance!