有个Java项目 是用Start.bat 去启动 的 请问该怎么启动
1条回答 默认 最新
头号大宝贝 2016-07-19 06:44关注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");解决 无用评论 打赏 举报