r/javahelp • u/[deleted] • Aug 23 '19
Distributing java app that utilizes JDBC
Hi, all
So I've created a application for my fantasy football league that utilizes a database that I've created on my local machine. In my java source code I query the database using JDBC. I know that a jar file is used to distribute java apps to other people, but I am confused as to how to distribute the database portion of the app.
17
Upvotes
1
u/aenigmaclamo Extreme Brewer Aug 23 '19
Either distribute a database dump or data files which your application can use to insert data into your database.
Consider also using a tool like flyway which allows you to do database migrations that keep your db changes version controlled