Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On a Windows Server, I have 2 kinds of Java processes

  • java.exe
  • javaw.exe

What are the differences ?

share|improve this question
up vote 7 down vote accepted

java.exe pops up a console window. javaw.exe does not.

If you expect text output, you'll need to use java.exe. If the application pops up its own window (e.g., Eclipse), you can use javaw.exe.

share|improve this answer

From -

"The javaw.exe command is identical to java.exe, except that with javaw.exe there is no associated console window. This implies you can't get it to display the version with -version, since there is no console to display it on. Use javaw.exe when you don't want a command prompt window to appear. The javaw.exe launcher will, however, display a dialog box with error information if a launch fails for some reason."

Hope this helps.

share|improve this answer

Java is the plain old java interpreter that runs in a DOS box (so you have a console window open all the time).

Javaw is a wrapper around java that doesn't open a console window (and I guess redirects stdio, stdout and stderr to NUL)

share|improve this answer

javaw.exe has no associated console window (wrapper) unlike java.exe, that's all the difference between them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.