title: System.out.println not working with threads when executed from console
body: <p>I have an application which uses threads to run heavy tasks. When the thread ends its own task, it creates a file and sends a message using <code>System.out.println()</code>.</p>
  
  <p>In Eclipse works fine, but once compiled into a <em>.jar</em> and called from console, it does not display anything. <strong>However it creates correctly the files.</strong></p>
  
  <p>What happends is, when i call the application via console, a new console prompt appears inmediatly, although the program is not finish yet (I know it because no file is being generated yet).</p>