以下是官网的原话:
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