Java Runtime exec() method

import java.io.IOException;

public class Test {
  public static void main(String[] args) {
	 try {
		Runtime.getRuntime().exec("notepad");
	} catch (IOException e) {
		e.printStackTrace();
	}
  }
}  
Please follow and like us:
Content Protection by DMCA.com