Java app 'steals' stdin from cmd.exe console
<p>I am trying to run a java app as a spawned child process under Windows 7. 
The command I am using is in the lines of: <code>java -cp ...list of libs...</code>
The problem is that once the application loads, it doesn't have its own stdin stream but try to uses its parent's stdin, which results in that commands can not be passed to it.
Are there any parameters of 'java.exe' that can twick this behavior, so the child process will have its own stdin?
Thanks</p>

<p><strong>Update:</strong>
Sorry I am not a java programmer but could this happen because of this line in the java app I am running:</p>

<pre><code>this(new IO(System.in, System.out, System.err), STANDARD_INPUT_PROMPT, STANDARD_RESULT_PROMPT);
</code></pre>

<p>If so, what is an adequate substitute to <code>System.in</code>?</p>
