项目中无法执行c程序,猜测是exec()函数的问题
String cmd= exe_path + " " +video + " " +host + ":" + port; Process process = runtime.exec(cmd);
业精于勤,荒于嬉;行成于思,毁于随。
String[] cmd = new String[]{exe_path, video, host + ":" + port}
String[] cmd = {"/data/data/app_name/exename", "3" "ip:port"}; java.lang.ProcessBuilder builder = new java.lang.ProcessBuilder(cmd); java.lang.Process process = builder.start(); int exitcode = process.waitFor();
业精于勤,荒于嬉;行成于思,毁于随。