System.out.println does not print on netbeans console

I used Netbeans 7.0 to develop a Blackberry application with an LWUIT base. And I use the Blackberry SDK 4.7. I print a string using System.out.println(...);in my application in many places. But string values ​​are not printed on the netbeans console.

What is the problem? How to solve this problem?

+5
source share
6 answers

I do not use Netbeans , but in Eclipse, console printing only works when you start debugging your project ( Debug as > Blackberry Simulator), and it does not work while running ( Starting from > Blackberry Simulator) of your project. that is, if the debugger is not connected to the simulator, then it System.out.println(...)does not work.

+8
source

Netbeans is fine, don't worry. All you have to do is make sure that you created the source code correctly by clicking the build button! This will show you all your mistakes. At the top, make sure you add

package "your-project-name";


public class your-project-name {

public static void main(String[] args) {
    System.out.println("Hello World");
    }

}
0
source

Java Console netbeans 7.2

import:

  import static java.lang.System.out;

, - , :

 out.println;
0

NetBeans 7.2 " " ( /)

0

→ , , , , , "Run" . " " , , , , .

0

netbeans ... Windows > Output > ADB Log , log Log.i( " ", " " ); System.out.println( " " )

,

0

All Articles