title: How to create installer once finished with Java Desktop Application with MySQL DB?
body: <p>I have finished writing a Java Desktop application with a mySQL database. I want to make the application run outside netbeans and let it be installed on other computers. I know about building the project and creating the runnable jar file, however this requires me to export the database itself to the other computer I want the application to run on. 
  My question is two parts:</p>
  
  <p>1)Is there a way I can create a setup file that also installs the database and the application together?</p>
  
  <p>2)Also my database path is hard coded, does that mean I have to change the code every time I install my application for someone, what is the better way to do that?</p>
  
  <p>Thanks</p>