title: Is there a way to redirect input from file to stdin in Netbeans?
body: <p>I'm developing application with Netbeans and Maven. My application should obtain data from stdin. But I could not understand how to test it. Putting <code>&lt; data.txt</code> into args list does not work.</p>
  
  <p>I need the same as:</p>
  
  <pre><code>$ java MyProgram &lt; data.txt 
  </code></pre>