title: How can I make exe-file to write text on the command line?
body: <p>I have java console application, what writes text into command line. When I use jar-file, it works fine. But when I create exe-file and work with it, application does not write anything into command line. If I write in cmd <code>myapp.exe writeSomething &gt; output.txt</code>, I can see output text in output.txt. What do I need to do to myapp.exe begins to write text into command line?</p>
  
  <p>I am using launch4j-maven-plugin.</p>
  
  <p>This is my configuration:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;com.akathist.maven.plugins.launch4j&lt;/groupId&gt;
      &lt;artifactId&gt;launch4j-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.5.2&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;l4j-clui&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;launch4j&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;headerType&gt;gui&lt;/headerType&gt;
  ....
  </code></pre>