Difference between java and javaw

后端 未结 6 1266
感动是毒
感动是毒 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:37

    It depends on how the Tomcat server is run. However, the way of configuring and starting Tomcat is out of the question. I could say that there's different options of doing that. If you starting Tomcat with java it runs like command line application which directs IO to the console. If you run it with javaw then it doesn't directs IO to the console. Many applications and servers has logging capabilities that could direct the output to the console. For this purposed better to use a command line instance of java instead of windows app. There's a reason to run javaw vs java is no logging, debugging messages, no error, stacktraces, exceptions, everything that System.out and System.err produce is visible while you running the application.

提交回复
热议问题