You can capture output and error streams by retrieving the Process from the Runtime.getRuntime().exec() function. Depending upon what you are running, it may be also be a good idea to do capture...