Help with embedding database
I'm having a hard time grasping the idea of embedding a database into the application. I've read various tutorials and guides and I'm still a bit lost. I've created the shell of the program in NetBeans and i have yet to embed the database. I was wondering if anyone could help me out here and also suggest an embedded database (ie derby) to use. I'm sorry if I'm not making much sense but I am quite confused.
Thanks
Please if you're going to reply, don't reply with a let me google that for you link.
Re: Help with embedding database
Hi!
You can give HSQLDB a try. It's a clear example of embedded DB and we have successfully used it in several projects.
Basically, you don't need to install the DB engine. Just deliver the hsqldb.jar with your application, as you would do with the rest of libraries you use.
Re: Help with embedding database
You question is a bit open ended, so what exactly are you stuck with? Did you try to embed a database by adding the appropriate library? Did you try loading the driver class? Did you try creating a database? See the following if you are considering Derby
Step 3: Embedded Derby
Re: Help with embedding database
im stuck with embedding the database into the application. im not exactly sure how to add the library into the application :/
Re: Help with embedding database
Add the library to your classpath. If you don't know what this means, I recommend doing an internet search for thses the terms. Once you have done this, write a small test program to test the database (see link above), and if you have problems post the code and any and all errors (runtime/compile time) associated with the code
1 Attachment(s)
Re: Help with embedding database
Attachment 865
so ive gotten there but i dont know which tab to add the derby library. also i downloaded the db-derby-10.8.2.2-bin.zip file from their website but i cant find the jar files..
Apache Derby 10.8.2.2 Release