I am trying to write a java program that will start up pterm (the qnx
terminal screen). For some reason, this code doesn’t work on QNX, but when i
try to run notepad.exe on widndows instead, it works. Please help me out.
Thanks
Runtime rt = Runtime.getRuntime();
String cmd = “ped”;
try {
Process pro = rt.exec(cmd);
System.out.println("Process exit code is: " + pro.exitValue());
}catch(IOException ioe) {
System.err.println("IOException: " + ioe);
}
When i run this program, i just get the error message:
“IOException: java.io.IOException: Unable to start program”
I am trying to write a java program that will start up pterm (the qnx
terminal screen). For some reason, this code doesn’t work on QNX, but when
i
try to run notepad.exe on widndows instead, it works. Please help me out.
Thanks
Runtime rt = Runtime.getRuntime();
String cmd = “ped”;
try {
Process pro = rt.exec(cmd);
System.out.println("Process exit code is: " +
pro.exitValue());
}catch(IOException ioe) {
System.err.println("IOException: " + ioe);
}
When i run this program, i just get the error message:
“IOException: java.io.IOException: Unable to start program”
I am trying to write a java program that will start up pterm (the qnx
terminal screen). For some reason, this code doesn’t work on QNX, but when i
try to run notepad.exe on widndows instead, it works. Please help me out.
Thanks
Runtime rt = Runtime.getRuntime();
String cmd = “ped”;
try {
Process pro = rt.exec(cmd);
System.out.println("Process exit code is: " + pro.exitValue());
}catch(IOException ioe) {
System.err.println("IOException: " + ioe);
}
When i run this program, i just get the error message:
“IOException: java.io.IOException: Unable to start program”
if you give it the fully path, i.e., /usr/photon/bin/ped, it works. I
just tried it on my box…
James wrote:
Hello,
I am trying to write a java program that will start up pterm (the qnx
terminal screen). For some reason, this code doesn’t work on QNX, but when i
try to run notepad.exe on widndows instead, it works. Please help me out.
Thanks
Runtime rt = Runtime.getRuntime();
String cmd = “ped”;
try {
Process pro = rt.exec(cmd);
System.out.println("Process exit code is: " + pro.exitValue());
}catch(IOException ioe) {
System.err.println("IOException: " + ioe);
}
When i run this program, i just get the error message:
“IOException: java.io.IOException: Unable to start program”
\