为什么不是我的jar文件运行之外的NetBeans? [英] why doesn't my jar file run outside netbeans?
本文介绍了为什么不是我的jar文件运行之外的NetBeans?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我构建了一个可以在NetBeans的完美运行,当我点击运行一个jar文件,
但是当我尝试运行通过双击jar文件就不会跑,什么都不会发生。
I built a jar file that can run perfectly within netbeans when I click run, but when I try to run the jar file by double clicking it it does not run, nothing happens..
推荐答案
双击罐子启动它,但除非你有打开一个新窗口(在不同的线程)的GUI应用程序,它最有可能完成并关闭之前,你可以看到任何东西。
Double-clicking the jar starts it, but unless you have a GUI application that opens a new window (in a different thread), it most likely finishes and closes before you can see anything.
在这些情况下,您通常从控制台运行的jar( Java的罐子..
),看看是否有任何异常/错误。
In these cases you normally run the jar from the console (java -jar ..
) to see if there are any exceptions/errors.
这篇关于为什么不是我的jar文件运行之外的NetBeans?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文