Pages

Difference between Java and Javaw exe

There will be a bit confusion between java and javaw exes in JDK bin folder, the path is (where the jdk is placed directory)


c:/Program Files/Java/JDK/bin/java.exe
c:/Program Files/Java/JDK/bin/javaw.exe



Both will do the similar work and will run in same environment (Windows). But have one key difference in common.

java.exe is the console app, if want to work in console executing any java code without any IDE(Eclipse,Netbeans) java.exe will execute and run.

c:/Program Files/Java/JDK/bin/Java FirstApp.java

javaw.exe is windows app (console-less). You can't have Console with javaw.exe. If  working in IDE like Eclipse,javaw.exe will run in the system.