try {
Runtime.getRuntime().exec("G:\\Program Win7( 64位)\\KGMusic\\KuGou.exe "); //括号里为要调用程序在本地的位置
} catch(Exception e) {
System.out.println(e);
Runtime.getRuntime().exec("G:\\Program Win7( 64位)\\KGMusic\\KuGou.exe "); //括号里为要调用程序在本地的位置
} catch(Exception e) {
System.out.println(e);
}
注意:此方法会抛出异常,一定要捕捉异常