how to run process
Here is the way to wrap external console-executable stuff.
private Process Process = null; String command = "ping google.com"; Runtime r = Runtime.getRuntime(); Process = r.exec(command); BufferedInputStream = new BufferedInputStream(Process.getInputStream());// bytes from the process BufferedOutputStream = new BufferedOutputStream(Process .getOutputStream());// bytes to the process ... Process.destroy(); System.out.println("------------------> Process killed.");