当前位置: 技术问答>java相关
有加分:java和javaw的区别
来源: 互联网 发布时间:2015-06-18
本文导语: 有加分:java和javaw的区别 | 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...
有加分:java和javaw的区别
|
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.
你可以在你jkd文档的这里找到这段话:
docstooldocswin32java.html
“javaw没有和它相关的控制台窗口”
你可以在你jkd文档的这里找到这段话:
docstooldocswin32java.html
“javaw没有和它相关的控制台窗口”
|
java命令运行你的程序时,置程序于前台;而javaw是置于后台。
|
javaw启动后将dos窗口关闭了,当然不能看到输出了。