你如何在 OpenSUSE 或 Ubuntu 中拉出 java 控制台?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1189984/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 15:33:31  来源:igfitidea点击:

How do you pull up the java console in OpenSUSE or Ubuntu?

javalinuxappletjconsole

提问by Stefan Kendall

I'm working on a java applet, and I was wondering where the heck System.out was going in Ubuntu/OpenSUSE. In windows, I just pull up jconsole, but I've not found this in Ubuntu/OpenSUSE.

我正在开发一个 java 小程序,我想知道 System.out 在 Ubuntu/OpenSUSE 中的去向。在 Windows 中,我只是拉起 jconsole,但在 Ubuntu/OpenSUSE 中我没有找到它。

Thanks.

谢谢。

回答by Yaba

Run the command jcontrol. On the Advancedtab expand Java consoleand select Show console. Restart Firefox and the console should open the next time you open a Java applet in the browser.

运行命令jcontrol。在高级选项卡上展开Java 控制台并选择显示控制台。重新启动 Firefox,下次您在浏览器中打开 Java 小程序时,控制台应该会打开。

回答by Stefan Kendall

Also, you can run firefox from the terminal to see jconsole output. Jconsole output goes to firefox's standard out.

此外,您可以从终端运行 Firefox 以查看 jconsole 输出。Jconsole 输出进入 Firefox 的标准输出。