In Java, executing external procedures can be used using Runtime.Getruntime (). EXEC ("The program name to run") is OK.
Class Runapp {
Public static void main (string args []) {
Try {
Process P = runtime.getRuntime (). EXEC ("NOTEPAD.EXE");
// Execute a writing board under Windows
p.WaitFor ();
}
Catch (Exception E) {system.out.println (E.getMessage ());}
}
}
-------------------------------------------------- -------------------------------------
Transfer from 9CBS Java FAQ