我使用 Netbeans 创建了一个 GUI 应用程序,它与数据库(localhost)有一个连接。
现在我希望能够将它作为软件分发。
有没有办法为 Netbeans 项目生成安装文件?以及如何分发使用 MySQL 数据库的 Netbeans 项目?
我使用 Netbeans 创建了一个 GUI 应用程序,它与数据库(localhost)有一个连接。
现在我希望能够将它作为软件分发。
有没有办法为 Netbeans 项目生成安装文件?以及如何分发使用 MySQL 数据库的 Netbeans 项目?
how can I distribute a Netbeans project which uses a MySQL database?
You might want to get familiar with NSIS. NSIS will enable you to automate the installation process.
Your installation process will have to do the following:
Your installation process can do the following:
This installation process will take some time to develop and test.
Use the solution made by the suppliers of Java - Java Web Start.
deployJava.js
(described in the linked page) ensures the user has the minimum JRE needed to launch the app. & MySQL.installer-desc
extension for installing the DB. Store any set-up details into the PersistenceService
for later use.JWS works on all major platforms for which J2SE is available and also provides..
..many appealing features including, but not limited to, splash screens, desktop integration, file associations, automatic update (including lazy downloads and programmatic control of updates), partitioning of natives & other resource downloads by platform, architecture or Java version, configuration of run-time environment (minimum J2SE version, run-time options, RAM etc.), easy management of common resources using extensions..