posted 19 years ago
Runtime.exec is a tricky beast; it is not -- repeat, NOT -- directly analougous to C's system() command. The action that you describe could be the case for any number of reasons: The path identified is not executable by the system, you are including command-line parameters in the path (Runtime.exec really doesn't like that, in my experience...), etc.
There are a number of ways around this -- most of them are system-dependant. You could write a batch file/shell script and execute the batch file. You could use JNI write a native method the simply calls the system() command. If you poke and prod Google, I'm sure that it would tell you different ways to get around this.
That said, I can't give a much more specific answer without having a more specific example....
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.