以下是官网的原话:
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.
javaw其实就是java, 只是用javaw启动不会跟着一个控制台窗口。如果你要启动一个窗体, 并且不需要那个控制台, 用javaw, 如果程序运行出错了, 你要弹出错误对话框来代替System.out
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.
javaw其实就是java, 只是用javaw启动不会跟着一个控制台窗口。如果你要启动一个窗体, 并且不需要那个控制台, 用javaw, 如果程序运行出错了, 你要弹出错误对话框来代替System.out
本文解释了javaw命令与java命令的区别。javaw用于启动应用程序时不显示控制台窗口,适用于不需要显示命令提示符的应用场景。若程序启动失败,javaw会通过对话框展示错误信息而非控制台输出。
2720

被折叠的 条评论
为什么被折叠?



