开发者

Silent mode execution with java.exe

I would like to know if there is a way to execut开发者_如何学Pythone 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.


Use

javaw -cp . MyClass arg1

(assuming you're on MS windows)

If you're looking at services rather then applications then have a look at 'service wrappers'

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜