Elisheva,
Many thanks for your code. I tried it but I got the same result. If the command array contains two elements, namely "perl" and the name of a perl script, then the code works fine. However, using your example code verbatim, your java code still indicates that no output was produced.