To execuete another jar file.

Hello,

If I invoke another exeuable jar file using Runtime.getRuntime().exec("java -jar ***");

Is there any method to listen to that invoked Jar process? I tried System.out but the invoked jar program gives no out since there is no console.

How to monitor the process of another JAR program then?

Thanks!

[360 byte] By [wateicea] at [2007-10-3 9:22:00]
# 1
that method returns a runtime object. you can get input and output streams from it. those are the streams used by your jar file. i think the method to wait for the process to finish isRuntime t;t.waitFor();it returns the exit code
mkoryaka at 2007-7-15 4:35:35 > top of Java-index,Java Essentials,Java Programming...
# 2
give me my 1 duke dollar you ****!
mkoryaka at 2007-7-15 4:35:35 > top of Java-index,Java Essentials,Java Programming...
# 3
Oh Sorry I just back.
wateicea at 2007-7-15 4:35:35 > top of Java-index,Java Essentials,Java Programming...
# 4
Thanks!
wateicea at 2007-7-15 4:35:35 > top of Java-index,Java Essentials,Java Programming...
# 5
> give me my 1 duke dollar you ****!Dukewhore!
CaptainMorgan08a at 2007-7-15 4:35:35 > top of Java-index,Java Essentials,Java Programming...