How to create an executable in java + Mysql database?

Asked

Viewed 4,563 times

3

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? Thank you!

  • 1

    The database is one somewhere on the internet or it should be installed on the local machine along with the application?

  • Have to go on the local machine, provisionally I made a way to install the bank, but I will use Sqlite in my application to facilitate the installation.

2 answers

1

  1. First you need to package your project including all its dependencies, recommend that you research a little more about ANT and Big jar. For the netbeans HERE has an example of how to compile your project with all its dependencies.

  2. You can use some installer like Inno Setup or Install Creator to join the installer of My SQL and its application in a single executable to distribute.

0

It has to be fixed IP’s or DNS(nameserver) connection and the JBDC driver connects them correctly with this data. I believe that if they are correct there will be no problems arising.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.