如何在netbeans中创建.exe文件?
我在 netbeans 中创建了一个项目,我希望它可以在另一台计算机上运行,而无需安装 netbeans(就像 Visual Basic 中的 .exe
一样)。
我按了 F11,然后得到了一个 lib
文件夹,其中有一个 .jar
文件。但我不知道如何解决,我必须双击哪一个?
有人可以指导我吗?
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).
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您创建了一个 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
要在其他计算机上运行 jar 文件,您至少应该有 jdk。他们不需要安装 NetBeans,但您必须首先设置与 PC 和数据库的数据库连接。连接后,只需双击 jar 文件,您的项目就会运行。
要了解如何在 NetBeans 中创建 Jar 文件,请查看此链接。
To run jar file on other computer you should have at least jdk. Their is no need to install NetBeans but you have to first set database connectivity to pc and your database. After connectivity just double click on jar file your project will run.
To know how to create Jar file in NetBeans check this link.
此桌面应用程序或基于 Web 的应用程序是什么类型的项目?如果您使用 java,那么对于桌面应用程序,您需要创建一个 *.JAR,对于基于 Web 的应用程序,您需要创建一个 *.WAR。
创建 jar/war 的步骤很简单。请遵循任何教程。
What type of project is this Desktop application OR Web based application ? If you are using java then for Desktop application you need to create a *.JAR and for Web based : *.WAR.
There are simple step to create jar/ war. please follow any tutorial.