java语言执行模式,使用java.exe执行静默模式
I would like to know if there is a way to execute the "java.exe" as a background process (silent mode execution)
Ex: java -cp . MyClass arg1
I want to run the above statement as a background process , without opening command window
解決方案
Under Windows, use javaw.exe instead of java.exe. See here for link, relevant bit copied here:
The javaw command is identical to java, except that with javaw there is no associated console window. Use javaw when you don't want a command prompt window to appear. The javaw launcher will, however, display a dialog box with error information if a launch fails for some reason.
總結(jié)
以上是生活随笔為你收集整理的java语言执行模式,使用java.exe执行静默模式的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php fetch返回false,Php
- 下一篇: Sprint Boot————@Qual