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
You cannot redirect input like that from Java. Using < is a special shell pipe redirection command.
<
You will either have to use processBuilder.getOutputStream() to write data to the process, or else you can use redirectInput.
processBuilder.getOutputStream()