You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Peter Cheung <mc...@hotmail.com> on 2020/06/02 16:57:42 UTC

System.out.print(">") not working when F6

Hi
   System.out.print(">") not working when F6, nothing print out on screen. If I pack the program into jar and run it in dos prompt, it works. I don't know it is mvn bug or netbeans bug. I am using Netbeans 11.3 with JDK 13.0.2. Please help.

Thanks
From Peter

Re: System.out.print(">") not working when F6

Posted by Laszlo Kishalmi <la...@gmail.com>.
Most probably the output buffer does not get flushed before the process 
termination.

On 6/2/20 10:08 AM, Peter Cheung wrote:
> Sorry, confirm it is not netbeans bug. I run it in prompt by exactly same mvn command. The system.out.print() not working:
>
> mvn -Dexec.args="-classpath %classpath hk.quantr.riscv_simulator.Simulator" -Dexec.executable="C:\Program Files\Java\jdk-13.0.2\bin\java.exe" -Dexec.classpathScope=runtime -Dmaven.ext.class.path="C:\Program Files\NetBeans-11.3\netbeans\java\maven-nblib\netbeans-eventspy.jar;C:\Program Files\NetBeans-11.3\netbeans\java\maven-nblib\netbeans-cos.jar" -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
>
> so it probably a bug of maven or org.codehaus.mojo:exec-maven-plugin
>
> Thanks Gentlemen.
> ________________________________
> From: Peter Cheung
> Sent: Wednesday, June 3, 2020 12:57 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>
> Subject: System.out.print(">") not working when F6
>
> Hi
>     System.out.print(">") not working when F6, nothing print out on screen. If I pack the program into jar and run it in dos prompt, it works. I don't know it is mvn bug or netbeans bug. I am using Netbeans 11.3 with JDK 13.0.2. Please help.
>
> Thanks
>  From Peter
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: System.out.print(">") not working when F6

Posted by Peter Cheung <mc...@hotmail.com>.
Sorry, confirm it is not netbeans bug. I run it in prompt by exactly same mvn command. The system.out.print() not working:

mvn -Dexec.args="-classpath %classpath hk.quantr.riscv_simulator.Simulator" -Dexec.executable="C:\Program Files\Java\jdk-13.0.2\bin\java.exe" -Dexec.classpathScope=runtime -Dmaven.ext.class.path="C:\Program Files\NetBeans-11.3\netbeans\java\maven-nblib\netbeans-eventspy.jar;C:\Program Files\NetBeans-11.3\netbeans\java\maven-nblib\netbeans-cos.jar" -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec

so it probably a bug of maven or org.codehaus.mojo:exec-maven-plugin

Thanks Gentlemen.
________________________________
From: Peter Cheung
Sent: Wednesday, June 3, 2020 12:57 AM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>
Subject: System.out.print(">") not working when F6

Hi
   System.out.print(">") not working when F6, nothing print out on screen. If I pack the program into jar and run it in dos prompt, it works. I don't know it is mvn bug or netbeans bug. I am using Netbeans 11.3 with JDK 13.0.2. Please help.

Thanks
From Peter