Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Desktop Application using SQLite installed by a single installer

I am a beginner in programming Java Desktop Application interacting with databases. My goal is to make a simple java application which uses a database to store it's data locally. After some googling I found that SQLite/Derby would cover my needs.

I've googled SQLite and Derby and I found that in order to use them I need to install them on the computer through commands in terminal.

My question is how the application could be done so that at the end the client will be given a simple installer file which installs both Java Application and the SQLite/Derby Database avoiding doing any installations before.

Is that possible?

like image 370
panda Avatar asked Aug 28 '12 11:08

panda


1 Answers

I think the easyest for you is to use the database in embedded mode. Different databases could be use in this way :

  • Derby
  • SQLLite and for more details you could at this answer
  • HSQLDB

The database is packaged with your application jar, so you don't need to install it.

like image 126
gontard Avatar answered Sep 27 '22 22:09

gontard