开发者

How to call external executable file from java

I am new to java...

I have a problem while trying to call external executable file from java...

Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("cmd /c terminal.e开发者_开发技巧xe");

while trying to call this getting below error..

Exited with error code 1


Are you sure your terminal.exe is in the Windows path?
You can try and replace it with notepad.exe, for example, to see if it works.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜