I just tried this on my system:
public static void main(String[] args) throws IOException { String[] params = { "svn", "help" }; Process p = Runtime.getRuntime().exec(params); BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); String line; while ((line = input.readLine()) != null) { System.out.println(line); } input.close(); }
and it worked fine. Are you sure that the program you are using actually prints something to the console? I see that jpegs is required as input, maybe it writes a file, not stdout.
source share