简体   繁体   English

如何为我们自己的NetBeans Java应用程序实现NetBeans Installer(NBI)?

[英]How to implement NetBeans Installer(NBI) for our own NetBeans Java application?

I wanna make executable installer for my Java application developed using NetBeans IDE v8. 我想为使用NetBeans IDE v8开发的Java应用程序制作可执行安装程序。 My Question was, How to implement NBI(NetBeans Installler) for my Java application. 我的问题是,如何为我的Java应用程序实现NBI(NetBeans Installler)。 In their weblink https://platform.netbeans.org/tutorials/nbm-nbi.html they demonstrated using sample application.. But I couldn't get option(like they have specified for sample application in tutorial) for my Java application. 在他们的网站链接https://platform.netbeans.org/tutorials/nbm-nbi.html中,他们使用示例应用程序进行了演示。但是我无法获得Java应用程序的选项(就像他们在教程中为示例应用程序指定的那样)。

Thank you 谢谢

This is built right into NetBeans. 这是内置在NetBeans中的。

  1. Right click on the project name. 右键单击项目名称。
  2. Choose "Properties" 选择“属性”
  3. In the "Deployment" section, check the "Enable Native Packaging" option 在“部署”部分中,选中“启用本机打包”选项 在此处输入图片说明
  4. Close the dialog 关闭对话框
  5. Right click on the project name 右键单击项目名称
  6. Choose "Package As -> EXE Installer" 选择“打包为-> EXE安装程序”

    在此处输入图片说明

This assumes a standard (Ant based) Java project. 这假设一个标准(基于Ant)的Java项目。 I don't know if this is available when using Maven. 我不知道使用Maven时是否可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM