0

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?

Chris Forrence
  • 10,042
  • 11
  • 48
  • 64
mlethys
  • 436
  • 9
  • 29

1 Answers1

1

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.

Community
  • 1
  • 1
Bryan Pendleton
  • 16,128
  • 3
  • 32
  • 56