简体   繁体   English

如何为Java应用程序以及在mysql中创建的数据库创建安装程序包

[英]How to create an installer package for java application along with database created in mysql

I have completed a java application. 我已经完成了一个Java应用程序。 Now I have to generate an installer package for the application. 现在,我必须为该应用程序生成一个安装程序包。 It also has a database made in mysql. 它还有一个用mysql制成的数据库。 How can i generate an installer along with my database that created in mysql. 我如何生成安装程序以及在mysql中创建的数据库。

To package a program in Netbeans, you may first need to enable it. 要在Netbeans中打包程序,您可能首先需要启用它。

  1. Right click on your project and go to Properties 右键单击您的项目,然后转到“ Properties
  2. Under Build -> Deployment Make sure that Enable Native Packaging is enabled Build -> Deployment确保已Enable Native Packaging
  3. Save and close the Properties window 保存并关闭“ Properties窗口

You will also need to install 1 or both of the following (For windows builds): 您还需要安装以下一项或两项(对于Windows构建):

Now to build the installer: 现在构建安装程序:

  1. Right click on your project and go to Package as and select how you want to package it. 右键单击您的项目,然后转到“ Package as然后选择要打包的方式。
  2. Answer the questions it asks and build 回答它提出的问题并建立

You can find more information here: https://netbeans.org/kb/docs/java/native_pkg.html 您可以在这里找到更多信息: https : //netbeans.org/kb/docs/java/native_pkg.html

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

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