Java: Embedded Data Base

Posted by Dmitry on Stack Overflow See other posts from Stack Overflow or by Dmitry
Published on 2010-05-26T08:31:35Z Indexed on 2010/05/26 9:01 UTC
Read the original article Hit count: 283

Filed under:

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 =)) )

© Stack Overflow or respective owner

Related posts about java