I have an external program Otter that gets as parameter some filename and creates an output file, also specified as parameter.
So for example if my input is "proof.in" and I want my output to be placed in the "proof.out" file, I run the following command in the terminal:
otter <proof.in >proof.out
The "proof.in" file must be in the same file as the otter executable.
The problem is that I need this functionality from Java so in my Java code I do the following:
java.lang.Runtime.getRuntime().exec("otter <proof.in >proof.out")
but after this line the whole UI is frozen and nothing happens and no output file is generated.
Could anyone show me where I got it wrong??
Thanks in advance,
Tamash
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…