简体   繁体   English

我如何在netbeans中看到输出控制台的结果

[英]how i can see the output console result in netbeans

I am a beginner studying Java using NetBeans. 我是一名使用NetBeans学习Java的初学者。 I created my first class and a simple code 我创建了我的第一个类和一个简单的代码

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

Why I don't see any result when I click run ? 点击run时为什么看不到任何结果? I am supposed to see hello world but nothing like this is shown. 我应该看到hello world但没有显示这样的东西。
Only a message BUILD SUCCESSFUL (total time: 0 seconds) 只有消息BUILD SUCCESSFUL (total time: 0 seconds)

Unfortunately I can't post images yet to better present problem I am facing. 不幸的是,我无法发布图像,以便更好地呈现我面临的问题。

尝试右键单击左侧面板上的类文件,然后选择运行选项

Mine was doing the same. 我也在这样做。

I went to java.com and downloaded java again- it then prompted me to uninstall all out-if-date updates. 我去了java.com并再次下载了java-它然后提示我卸载所有out-if-date更新。

When I ran it again it was working. 当我再次运行时,它正在工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM