In the process of running my java application, I launch a third-party program via the command line: how to get what this application returns to the console? Run like this:

Runtime.getRuntime().exec("C:\\findbugs.bat"); 
  • 3
    Runtime.getRuntime (). Exec ("C: \\ findbugs.bat"). GetInputStream (); - woesss
  • Yes, it is - cadmy

1 answer 1

from comments

 Runtime.getRuntime().exec("C:\\findbugs.bat").getInputStream(); 

woesss Feb 6 '14 at 8:11