I want to execute a executable program on Windows which will take arguments and return back some parameters.
I know I need to
Runtime r = Runtime.getRuntime();
Process p = r.exec("myprogram.exe");
Should I parse all three of these?
pErrorStream = p.getErrorStream(); //for errors?
pInputStream = p.getInputStream(); //for input and program output?
pOutputStream = p.getOutputStream(); // for additonal input ?
So just to clarify for me if I want to send arguments send them to inputstream and look there too for the program you are excuting output's too? Then OutputStream is only used to send additional input right?
This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java.
Introduce the Scanner object:
Declare the variable that stores the user input:
An example prompting the user for input:
Methods you need to invoke in order to properly get user input: