java.exe 和 javaw.exe 的区别

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1997718/
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-08-13 02:16:10  来源:igfitidea点击:

Difference between java.exe and javaw.exe

javaswingjavaw

提问by asela38

Recently I noted that some applications are running on javaw(not in java). What is the difference between them and how can I run my Swing application on javaw?

最近我注意到一些应用程序正在运行javaw(而不是在java)。它们之间有什么区别,我如何在其上运行我的 Swing 应用程序javaw

采纳答案by GuruKulki

java.exe is the command where it waits for application to complete untill it takes the next command. javaw.exe is the command which will not wait for the application to complete. you can go ahead with another commands.

java.exe 是等待应用程序完成的命令,直到它接受下一个命令。javaw.exe 是不会等待应用程序完成的命令。您可以继续执行其他命令。

回答by Chandra Patni

java.exeis the console app while javaw.exeis windows app (console-less). You can't have Consolewith javaw.exe.

java.exe是控制台应用程序,javaw.exe而是 Windows 应用程序(无控制台)。你不能Consolejavaw.exe

回答by Chathuranga Chandrasekara

The javaw.exe command is identical to java.exe, except that with javaw.exe there is no associated console window

javaw.exe 命令与 java.exe 相同,除了 javaw.exe 没有关联的控制台窗口

回答by David Heffernan

The difference is in the subsystemthat each executable targets.

不同之处在于每个可执行文件所针对的子系统

  • java.exetargets the CONSOLEsubsystem.
  • javaw.exetargets the WINDOWSsubsystem.
  • java.exe目标CONSOLE子系统。
  • javaw.exe目标WINDOWS子系统。