System.out.println does not print on netbeans console

bharath picture bharath · Sep 6, 2011 · Viewed 18.9k times · Source

I have used Netbeans 7.0 for developing Blackberry application with LWUIT framework. And I'm using Blackberry SDK 4.7. I print a string by using System.out.println(...); in my application in many places. But the string values aren't printed on the netbeans console.

What is the issue? How to resolve this issue?

Answer

Rupak picture Rupak · Sep 6, 2011

I don't use Netbeans, but in Eclipse console printing only works if you start debugging your project (Debug as > Blackberry Simulator), and it doesn't work while running (Run as > Blackberry Simulator) your project. i.e. if the debugger is not attached with the simulator then System.out.println(...) doesn't work.