I created a java desktop application that connects to a MySQL database, how can I generate this application to run on any machine along with my database? Thanks!
I created a java desktop application that connects to a MySQL database, how can I generate this application to run on any machine along with my database? Thanks!
First you need to package your project including all your dependencies, so I recommend that you search a little bit more about ANT and Big jar . For netbeans HERE has an example of how to compile your project with all its dependencies.
You can use some installer like Inno Setup or Install Creator to merge the My SQL installer and your application in a single executable to distribute.
It must be fixed connection IPs or DNS (nameserver) and the JBDC driver correctly connects them to this data. I believe that if they are correct there will be no emerging problems.