When using the usual Runtime.getRuntime().exec("clear") as you would in Java, nothing happens. However, if instead use touch test.txt a text file is indeed created. Is there a reason for this, and if so, are there any alternatives?
Both work in Java in the same environment.
EDIT: Missed brackets