在java中启动其他程序。
程序员文章站
2022-03-21 18:06:43
...
public static void main(String args[]){ System.out.println("Hello World!"); Runtime r=Runtime.getRuntime(); Process p=null; try { p=r.exec("notepad"); } catch(Exception ex) { System.out.println("----------------"+new java.util.Date()); ex.printStackTrace(); } }
推荐阅读