public static void main(String[] args) {java.lang.Runtime r = Runtime.getRuntime(); try { r.exec("notepad"); } catch (IOException e) { e.printStackTrace(); } }