Forum Stats

  • 3,767,936 Users
  • 2,252,732 Discussions
  • 7,874,385 Comments

Discussions

Runtime.exec()

843798
843798 Member Posts: 24,864
edited Aug 6, 2001 3:45PM in Java Runtime Environment (JRE)
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

This discussion has been closed.