我试图通过java代码运行rexster.bat文件,但是服务器没有启动。
下面是我的代码:
File dir = new File("C:\\output\\titan-rexster-server-2.5.0\\bin");
p = Runtime.getRuntime().exec("C:\\Windows\\System32\\cmd.exe /c rexster.bat --start", null, dir);如果我直接在命令提示符下执行"rexster.bat --start“,它就能正常工作。
谢谢你的帮助!
发布于 2015-07-07 01:55:44
我修改了我的代码,现在它可以工作了
File dir = new File(destDirectory+"\\titan-rexster-server-2.5.0\\bin");
p = Runtime.getRuntime().exec("C:\\Windows\\System32\\cmd.exe /c start rexster.bat -s", null, dir);https://stackoverflow.com/questions/31252421
复制相似问题