What do you have to do in Java to get the Runtime.exec() to run a program that is on the path? I\'m trying to run gpsbabel which I have put into the path (/usr/local/bin).>
Here is the solution:
ProcessBuilder proc = new ProcessBuilder("" + "Executable.exe"); proc.redirectOutput(ProcessBuilder.Redirect.INHERIT); proc.directory(fi); //fi = the output directory path proc.start();
is the path where program\application's excutable is located e.g "C:\MyProg\"