问题
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.exe");
while trying to call this getting below error..
Exited with error code 1
回答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.
来源:https://stackoverflow.com/questions/5934341/how-to-call-external-executable-file-from-java