Difference between java.exe and javaw.exe

JavaSwingJavaw

Java Problem Overview


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?

Java Solutions


Solution 1 - Java

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

Solution 2 - Java

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.

Solution 3 - Java

The difference is in the subsystem that each executable targets.

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

Solution 4 - Java

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionasela38View Question on Stackoverflow
Solution 1 - JavaChandra PatniView Answer on Stackoverflow
Solution 2 - JavaGuruKulkiView Answer on Stackoverflow
Solution 3 - JavaDavid HeffernanView Answer on Stackoverflow
Solution 4 - JavaChathuranga ChandrasekaraView Answer on Stackoverflow