Difference between java and javaw

后端 未结 6 1178
感动是毒
感动是毒 2021-01-12 14:16

I searched to know the difference between java.exe and javaw.exe. I read through Difference between Java.exe and Javaw.exe.

There it is st

6条回答
  •  醉梦人生
    2021-01-12 14:47

    Difference between java.exe and javaw.exe commands is while running java program on windows you might have noticed that they will appear in task manager as either java.exe or javaw.exe, also in JAVA_HOME/bin we see these two java commands java.exe and javaw.exe, do you know difference between java.exe and javaw.exe

    Both java.exe and javaw.exe can execute java programs including jar file, only difference is that with java.exe you have a console executed and you need to wait until your java program finishes to run any other command on the other hand in case of javaw.exe no console or window is associated with execution.

    you can run your java program either by using java.exe or javaw.exe. Its suggested to use javaw.exe when you don't need command line window to appear. javaw launcher will display in error in a dialog box if execution fails.

    In summary main difference between java and javaw command is that with java.exe you will get a command prompt window but with javaw.exe there is no command prompt windows associated.

提交回复
热议问题