The difference is in the subsystem that each executable targets.
java.exe
targets the CONSOLE
subsystem.javaw.exe
targets the WINDOWS
subsystem.java.exe
is the console app while javaw.exe
is windows app (console-less). You can't have Console
with javaw.exe
.
The javaw.exe command is identical to java.exe, except that with javaw.exe there is no associated console window
Source: Stackoverflow.com