Forum Stats

  • 3,760,187 Users
  • 2,251,659 Discussions


runtime.exec() for openning a browser

843798 Member Posts: 24,864
edited Jun 28, 2001 5:42PM in Java Runtime Environment (JRE)
hey guys!!

I could open a browser using a runtime.exec(). once i have opened it can i use the process.getOuputStream() method to read what is there in the browser.

How do i communicate with the browser?



  • 843798
    843798 Member Posts: 24,864
    No, getOutputStream will read only what the program writes to standard output. Typically, GUI programs don't even use standard output. The only way you can communicate with processes started by Runtime.exec that I know of is with the Process class.
This discussion has been closed.