日期:2014-05-20 浏览次数:20873 次
process = runtime.exec("dir");时报错,
java.io.IOException: Cannot run program "dir": CreateProcess error=2, ?????μ??
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at java.lang.Runtime.exec(Runtime.java:328)
at com.bokesoft.myscm_cloud.testcase.os.command.WindowsCommand.exec(WindowsCommand.java:21)
at com.bokesoft.myscm_cloud.testcase.os.command.WindowsCommand.main(WindowsCommand.java:40)
Caused by: java.io.IOException: CreateProcess error=2, ?????μ??
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 5 more