Get an instance of Runtime, then call appropriate execute method.for eg.Runtime rt = Runtime.getRuntime ();Process process = rt.exec ( input );