有个Java项目 是用Start.bat 去启动 的 请问该怎么启动
String cmd = "cmd /c start ./start.bat";// 注意start.bat路径
try {
Process ps = Runtime.getRuntime().exec(cmd);
ps.waitFor();
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("child thread donn");