You may use the
the exec() method os the Runtime class then pass is the name of the
shell( system command ) something like:
try
{
Process proc = Runtime.getRuntime().exec("Notepad.exe");
BufferedReader br = new BufferedReader(new InputStreamReader
(proc.getInputStream()));
String line;
while ((line = br.readLine) != null)
{ /* do something with output */ }
int returnValue = proc.waitFor();
br.close();
}
catch (Exception e) // should probably be a bunch of catch
statements here...
{ /* do something with exception */ }
This is similar to System("Notepad.exe"); statement in C.
I have never actually compiled this code but think you got the idea.