Difference between java.exe and javaw.exe

Difference between java.exe and javaw.exe and when to use them.

Both these commands are in JRE and are almost identical, except that with javaw.exe there is no associated console window.

This means that when you want to run a console application, you must use java.exe. If you want to run an application with user interface, you can use java.exe, but then the application has associated a console, so if you close it, the application closes as well. If you run your GUI application with javaw.exe, this application is not associated with any console, so you don't have to worry about this.

comments powered by Disqus


Free online Java web application examples

Want to develop whole web applications which use database, security and more? See my github account, where are lot's of example projects: