首页 > 代码库 > Java编程打开运行exe程序

Java编程打开运行exe程序

String path = "notepad.exe"; //(C:\Program Files\Tencent\QQ\Bin\qq.exe)

try { 
Runtime runtime = Runtime.getRuntime(); 
Process process = runtime.exec(path);

} catch (IOException e) { 
e.printStackTrace(); 
}

Java编程打开运行exe程序