The following lets you run system commands :
Runtime runtime = Runtime.getRuntime();
try {
process = runtime.exec("your command here");
}
catch (IOException e) {
e.printStackTrace();