Hey, I am trying to run another java program from mine using Runtime.getRuntime().exec.
In my program I call a function that is supposed to append text to a JTextArea, then run Process p = Runtime.getRuntime().exec( java -cp ... );
I have two problems, the first is that It runs the java program FIRST, and when the java program is done, it appends the text.
The second problem is that the parent program hangs until the second one is done. How can I fix these problems? Thanks.