Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how i can see the output console result in netbeans

Tags:

java

netbeans

I am a beginner studying Java using NetBeans. I created my first class and some simple code:

public class suju {
    public static void main(String[] args){
        System.out.print("hello word");
    }
}

Why don't I see any result when I click run? I am supposed to see hello world but nothing like this is shown.
Only a message BUILD SUCCESSFUL (total time: 0 seconds)

Unfortunately, I can't post images yet to better present the problem I am facing.

like image 463
user3248000 Avatar asked Apr 27 '14 12:04

user3248000


People also ask

Why can't I see output in NetBeans?

Try to run the code on cmd and try. If it runs successfully, check if you are executing the java class or the project in total. That may be the reason of no output. Else then try reinstalling your NetBeans IDE.

How do I save output in NetBeans?

We right-click with the mouse and select the Save As... option or press the shortcut Ctrl+S (in Windows). We see a dialog where we can select the filename for the output. Once we press the OK button the contents of the output window is saved to the file.

How do I change the output window in NetBeans?

Go to Window option> Click on output. Clicking Ctrl + 4. Right click on the bottom right corner of NetBeans and Click on Show Output.


1 Answers

Try to right click on the class file on the left panel then choose run option

like image 114
Salman Avatar answered Sep 22 '22 00:09

Salman