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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.