Difference Between Java. Exe and Javaw. Exe

Difference Between Java. Exe and Javaw. Exe

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?

1

4 Answers

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

2

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.

2

The difference is in the subsystem that each executable targets.

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

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

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.