gpt4 book ai didi

java - 使用 java.exe 的静默模式执行

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:06:01 25 4
gpt4 key购买 nike

我想知道是否有办法将“java.exe”作为后台进程执行(静默模式执行)

例如:java -cp。我的类 arg1

我想在不打开命令窗口的情况下将上述语句作为后台进程运行

最佳答案

在 Windows 下,使用 javaw.exe 而不是 java.exe。参见 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.

关于java - 使用 java.exe 的静默模式执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2902656/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com