开发者

How to call external executable file from java

开发者 https://www.devze.com 2023-03-03 17:14 出处:网络
I am new to java... I have a problem while trying to call external executable file from java... Runtime rt = Runtime.getRuntime();

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

精彩评论

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

关注公众号