Run external programs using runtime class
Okay, I'm experiencing a really annoying problem with java.lang.runtime
I'm building a GUI that needs to run some external programs, via a button say. These generally produce a text file or something, so I don't need to stream the output or anything (at least I'm assuming I don't?). Should be very simple...
So at the terminal (bash) I would type ./programName , and everything will run hunkey dorey.
In my code then, natrurally, I write
String cmd = "./programName";
Process p = runtime.getRuntime().exec(cmd);
But low and behold...nothing happens. What is going on here, and how do I get around it! ??
(On windows incidentally, it's no problem at all and works absolutely fine. But when I go over to mac, which is what I need to use, I'm screwed - only adding to the annoyance!)