如何在netbeans中创建.exe文件? [英] How to create a .exe file in netbeans?
问题描述
我已经在netbeans中创建了一个项目,我希望它可以在没有安装netbeans的情况下在另一台计算机上运行(就像在Visual Basic中的 .exe
)。
I've created a project in netbeans and I want it to be runnable in another computer without having the netbeans installed (just like a .exe
in visual basic).
我按 F11 我得到一个 lib
文件夹,其中 .jar
上的文件。但后来我不知道如何解决这个问题,我必须双击哪一个?
I pressed F11 and I got a lib
folder which has a .jar
file on it. But then I don't know how to work it out, which one do I have to double click?
任何人都可以指导我吗?
Can anyone please guide me?
推荐答案
如果你创建了一个java项目,那么其他计算机应该安装了java运行时,以便在那里执行jar(java - jar your.jar)否则如果你真的想要.exe使用全能互联网上发现的众多jar2exe转换器之一,例如 http://www.ucware.com/jexec/index.htm
If you created a java project, then the "other" computer should have the java runtime installed, in order for the jar to be executed there (java -jar your.jar) otherwise if you really want an .exe use one of the many jar2exe converters found on the almighty internet, such as http://www.ucware.com/jexec/index.htm
这篇关于如何在netbeans中创建.exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!