【发布时间】:2011-05-09 16:38:27
【问题描述】:
我是java新手...
我在尝试从 java 调用外部可执行文件时遇到问题...
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("cmd /c terminal.exe");
在尝试调用此错误时..
Exited with error code 1
【问题讨论】:
-
如果你打开一个windows命令shell并输入“cmd /c terminal.exe”会发生什么?