public static void main(String args[]){ try { String command ="notepad"; // 笔记本 Process child = Runtime.getRuntime().exec(command); } catch (IOException e) { e.printStackTrace(); } }