Why is going through getErrorStream() necessary to run a process?
<p>I am executing a process using the Process class. Going through the error stream seems to be necessary to execute the process successfully. Why is going through the error stream necessary for the process to run correctly? Is there something I am doing wrong?</p>

<pre><code>Process wkstdin = Runtime.getRuntime().exec(command);
BufferedWriter wkstdin_writer = new BufferedWriter(
            new OutputStreamWriter(wkstdin.getOutputStream()));
//write data
</code></pre>

<p>Necessary Part of the Code:</p>

<pre><code>BufferedReader input = new BufferedReader(new InputStreamReader(
            wkstdin.getErrorStream()));
String ch;
while ((ch = input.readLine()) != null)
{
  System.out.println(ch);
}
</code></pre>
