java控制台窗口没有出现
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23655606/
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
java console window not appearing
提问by Stefan Bollmann
When starting a Java program e.g.
启动 Java 程序时,例如
Java -cp path/to/ main.class
my application starts, but I don't get a console in Win 8.1. I have set the Java console Switch to show consoleas Admin. But the console still doesn't show up.
我的应用程序启动,但在 Win 8.1 中没有控制台。我已将Java 控制台开关设置为将控制台显示为管理员。但是控制台仍然没有出现。
回答by Stefan Bollmann
Bring up the Windows Charms bar through Windows key + W. Search for "Java Control Panel" and open that up. Go into the "Advanced" tab and the second category down should be "Java Console" - make sure that the "Show Console" option is selected.
通过 Windows 键 + W 调出 Windows Charms 栏。搜索“Java 控制面板”并打开它。进入“高级”选项卡,第二个类别应该是“Java 控制台”——确保选择了“显示控制台”选项。
回答by jla
The Java Console is available for applets running with Java Plug-in and applications running with Java Web Start.
Java 控制台可用于使用 Java Plug-in 运行的小程序和使用 Java Web Start 运行的应用程序。
https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/console_trace_log.html
https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/console_trace_log.html
If you are running your command from a command interpreter, it will become your console for input and output unless otherwise redirected. If you are using javaw you will have no console.
如果您从命令解释器运行您的命令,除非另外重定向,否则它将成为您输入和输出的控制台。如果您使用的是 javaw,您将没有控制台。