Java Result未在命令行中显示。 [英] Java Result is not displaying in command line.
本文介绍了Java Result未在命令行中显示。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经完成了我的第一个java应用程序,它已成功完成并在netbeans中获得输出。我还使用
Hi,
I have done my first java application and it was successfully finished and getting output in netbeans. I had also return a int value using
System.exit(value)
方法返回一个int值。它在开发环境中工作,因为我有Java结果。但是当我在命令行中执行jar文件时,什么都不会发生。它刚刚出现任何错误。
提前致谢。
method. It is working in development environment as i have got the Java Result. But when i execute the jar file in command line, nothing will happen. It just comes into the line with out any error.
Thanks in advance.
推荐答案
http://docs.oracle.com/javase/7/docs/api/java/lang/System.html# exit(int) [ ^ ]
System.exit(int)
终止app。
你要找的是
http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#exit(int)[^]
System.exit(int)
terminates the app.
What you're looking for is
System.out.println(String)
我建议将此页加入书签: http://docs.oracle.com/javase/tutorial/getStarted/index.html [ ^ ]
这篇关于Java Result未在命令行中显示。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文