mlethys
mlethys

Reputation: 436

How to provide java application with database?

I have a database-driven application (Apache Derby). I connect to the database by a URL:

jdbc:derby://localhost:1527/kcal_calc_db

My database was created via NetBeans, and is in the '.netbeans-derby' folder. How can I include this database with my JAR/EXE file?

Upvotes: 0

Views: 417

Answers (1)

Bryan Pendleton
Bryan Pendleton

Reputation: 16349

Try this related question: Distribute a database made with JavaDB with Java program

Note that you'll want your database to be accessed as an Embedded database, not a Client-Server database, so you'll need to change your Connection URL, use the Embedded JDBC driver, package derby.jar into your application, etc.

Upvotes: 1

Related Questions