Execute a system command: Difference between revisions

m
(add E examples)
Line 76:
[[Category:Java]]
''Compiler'': JDK 1.4 and up
There is two way to run system commands. The simple way, witchwhich have the inconvenience to hang the JVM (I would be interested in some kind of reason).
<pre>
import java.io.IOException;
Line 119:
</pre>
 
And the right way, witchwhich use threading to read the inputstream given by the process.
<pre>
import java.io.IOException;
Anonymous user