Process p = null; try { p = new ProcessBuilder("notepad").start(); } catch (IOException e) { }