title: Why doesn't JRuby script.rb > out.txt capture Java errors?
body: <p><a href="http://en.wikipedia.org/wiki/JRuby" rel="nofollow noreferrer">JRuby</a> script.rb throws many Java errors.</p>
  
  <p>I tried outputting to a text file, but only the output from the script itself is recorded. I need to capture all the errors that happen, as they are very long. How can I do that?</p>