如何在浏览器(窗口)中打开用于 Applet 调试的 Java 控制台输出窗口?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9833183/
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
How can I open a Java console output window for Applet debugging in a browser (windows)?
提问by peterk
I have firefox 11 or the windows XP version of IE -
我有 firefox 11 或 Windows XP 版本的 IE -
and the browser has jre6 and I have a 6 month old jsdk but the browser doesn't use that for runtime.
浏览器有 jre6,我有一个 6 个月大的 jsdk,但浏览器没有将它用于运行时。
nice if log window had history and a scrollbar if there are a lot of prints. I'm using log4j to do the prints.
如果日志窗口有历史记录和滚动条,如果有很多打印,那就太好了。我正在使用 log4j 进行打印。
Thanks.
谢谢。
采纳答案by Mathias Schwarz
I hope I understand your question correctly, I think what you are looking for is the 'Java Console'. Here is some info about how to find it and how to enable if it is disabled: http://www.java.com/en/download/help/javaconsole.xml
我希望我能正确理解您的问题,我认为您正在寻找的是“Java 控制台”。以下是有关如何找到它以及如何在禁用时启用它的一些信息:http: //www.java.com/en/download/help/javaconsole.xml
回答by Andrew Thompson
- Open the Java Control Panel.
- (Close the application viewer that opens on top of it.)
- ..follow the advice at the link shown by Mathias.
- 打开Java 控制面板。
- (关闭在它上面打开的应用程序查看器。)
- ..按照 Mathias 显示的链接中的建议进行操作。
The reason for the difference in the opening steps is that the early part of that advice is no longer valid in Windows 7. The steps 1) & 2) outlined above, will get you to the Java Control Panel in XP, Vista & 7.
打开步骤不同的原因是该建议的早期部分在 Windows 7 中不再有效。 上面概述的步骤 1) 和 2) 将使您进入 XP、Vista 和 7 中的 Java 控制面板。