Executing command line app
<p>I am trying to execute JAD decompiler on class file from code:</p>

<pre><code>Process p = Runtime.getRuntime().exec("c:\\1\\jad.exe c:\\1\\EIn.class");
//All paths are correct, "c:\\1\\jad.exe c:\\1\\EIn.class" wotks when I run it in cmd
</code></pre>

<p>When I debug i don't get any errors, debugger moves to the next line...</p>

<p>if I put:</p>

<pre><code>int res = p.waitFor(); 
</code></pre>

<p>It just hangs. </p>

<p>Update:</p>

<pre><code>BufferedReader in = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String str = null;
while ((str = in.readLine()) != null) { //Stucks here
}
</code></pre>
