Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Runtime.exec()

843798Aug 4 2001 — edited Aug 6 2001
Hello,

I am trying to run a GUI I created using the Runtime.exec() command like so:

Runtime rt = Runtime.getRuntime();
Process p = rt.exec("java myGui");

However, nothing happens; my GUI doesn't show up. I've seen a number of articles, most notably one at www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html, and they all seem to say that I need to handle the input, output, and error streams from the process I exec'ed. How would this be done in the case of a GUI?

Thanks in advance.

Gary
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 3 2001
Added on Aug 4 2001
1 comment
59 views