Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The problem seems to be the detached System.in or System.out from the Output window while using maven in Netbeans as pointed out in this <a href="https://stackoverflow.com/questions/3035351/broken-console-in-maven-project-using-netbeans">issue</a>. Try updating the exec-maven-plugin to 1.2 in the nbactions.xml file in your current Project directory, this bug has been solved in this newer version.</p> <p>To do that with UI, go to Project->Properties->Actions-> In the action: Run File via main(), Change the excecute goals to something like this: "process-classes org.codehaus.mojo:exec-maven-plugin:1.2:exec"</p> <p>After doing so, your nbactions.xml should have an action tag which would look like:</p> <pre><code> &lt;action&gt; &lt;actionName&gt;run.single.main&lt;/actionName&gt; &lt;goals&gt; &lt;goal&gt;process-classes&lt;/goal&gt; &lt;goal&gt;org.codehaus.mojo:exec-maven-plugin:1.2:exec&lt;/goal&gt; &lt;/goals&gt; &lt;properties&gt; &lt;exec.classpathScope&gt;${classPathScope}&lt;/exec.classpathScope&gt; &lt;exec.args&gt;-Djava.library.path="${project.build.directory}/lib" -classpath %classpath ${packageClassName}&lt;/exec.args&gt; &lt;exec.executable&gt;java&lt;/exec.executable&gt; &lt;/properties&gt; &lt;/action&gt; &lt;action&gt; &lt;actionName&gt;debug.single.main&lt;/actionName&gt; &lt;goals&gt; &lt;goal&gt;process-classes&lt;/goal&gt; &lt;goal&gt;org.codehaus.mojo:exec-maven-plugin:1.2:exec&lt;/goal&gt; &lt;/goals&gt; &lt;properties&gt; &lt;exec.classpathScope&gt;${classPathScope}&lt;/exec.classpathScope&gt; &lt;exec.args&gt;-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath ${packageClassName}&lt;/exec.args&gt; &lt;jpda.listen&gt;true&lt;/jpda.listen&gt; &lt;jpda.stopclass&gt;${packageClassName}&lt;/jpda.stopclass&gt; &lt;exec.executable&gt;java&lt;/exec.executable&gt; &lt;/properties&gt; &lt;/action&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload