Difference between java.exe and javaw.exe

浪尽此生 提交于 2019-11-26 05:21:03

问题


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?


回答1:


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.




回答2:


java.exe is the console app while javaw.exe is windows app (console-less). You can't have Console with javaw.exe.




回答3:


The difference is in the subsystem that each executable targets.

  • java.exe targets the CONSOLE subsystem.
  • javaw.exe targets the WINDOWS subsystem.



回答4:


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



来源:https://stackoverflow.com/questions/1997718/difference-between-java-exe-and-javaw-exe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!