Java: Embedded Data Base
- by Dmitry
Hello!
I want to create a desctop application with an embedded data base. Data base is JavaDB(Derby). I have connected a jar file derby.jar to my project. The problem is I don't understand how to register a driver to use this data base. It is said that I should use
Class.forName("org.apache.derby.jdbc.EmbeddedDriver")
But what if that was another data base and its driver was not in a java standart package?
As you can see I'm confused with this. I want to know, how to use my connected derby.jar, how to work with its jdbc driver and how to create tables in a specified directory.
Please, give as detailed answer, as you can. (I'm a dummy in this =)) )