« Return to Thread: Connecting to a database using an embedded driver

Re: Connecting to a database using an embedded driver

by nbdev69 :: Rate this Message:

Reply to Author | View in Thread

I don't use derby. I use MySql so I am hoping some of this info applies to derby as well.

In mysql you simply add the driver to netbeans using the Database runtime or you can add it using code. Once the driver is added you input the url and it is done. I have this problem as well if I try and use the built-in MySql driver included with netbeans. I simply add a external driver which netbeans handles adding to my class path when run. If this does not help try and be more specific about what is a "client" driver and what is an "embedded" driver I don't really know what that means.



ComputechSys wrote:
I'm trying to create a single user app that connects to a derby database. I have no problem creating connections using the client driver but cannot create a connection using the embedded driver. I get this error

Error: Unable to add connection. Cannot establish a connection to jdbc:derby:MaxxTrax using org.apache.derby.jdbc.EmbeddedDriver (Database 'MaxxTrax' not found).

And I dont know how the database isn't found cause the client driver can find it without a problem. Do i have to physically move the database or something?

And if no one can answer that, then using the client driver, how do I connect to the server using java code, and would i have to have the server installed seperatley or will it do it automatically in the clean and build?

 « Return to Thread: Connecting to a database using an embedded driver