I’m trying to run an external program with arguments. The program can take different types of arguments, for instance avl tip.avl or avl < test.ops<
avl tip.avl
avl < test.ops
Thank you both, the below works as expected.
File pipe = new File("test_0.ops"); ProcessBuilder pb = new ProcessBuilder("avl"); pb.redirectInput(pipe); final Process p = pb.start();