JAVA调用本地exe
程序员文章站
2022-05-09 08:50:15
...
// 方法1 java.awt.Desktop.getDesktop().open( new File("C:\\Program Files\\方正高影仪\\CaptureVideo.exe")); // 方法2 Runtime rn = Runtime.getRuntime(); Process p = null; try { p = rn.exec("\"D:/QQ2010.exe\""); } catch (Exception e) { System.out.println("Error exec!"); }