I am trying to launch the IE or Firefox browser from my Java Application. To launch the browser I am using the following code.
My requirement is to control the browser size while launching the browser.
Please let me know how can I control the browser size?
Don't know, but if you don't "empty" the two streams from that Process you might get deadlocks. Google for "when Runtime.exec() won't" and read Daconta's article before proceeding. Also look for the ProcessBuilder class, which makes this procedure slightly easier.