Reputation: 31
I have created a GUI application using Netbeans and it has a connection to a database( localhost).
Now I want to be able to distribute it as software.
Is there any way to produce a setup file for the Netbeans project? and how can I distribute a Netbeans project which uses a MySQL database?
Upvotes: 3
Views: 8085
Reputation: 168835
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..
Upvotes: 0
Reputation: 3895
You probably want to use an installer. Have a look at:
There are many others but I hope this can help you...
Upvotes: 2
Reputation: 51553
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.
Upvotes: 3