I\'m trying to running an external program from a Java program and I\'m having trouble. Basically what I\'d like to do would be this:
Runtime.getRuntime().e
You could try something like this:
ProcessBuilder pb = new ProcessBuilder(); pb.redirectInput(new FileInputStream(new File(infile)); pb.redirectOutput(new FileOutputStream(new File(outfile)); pb.command(cmd); pb.start().waitFor();