You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Bashiro <ba...@myway.com> on 2013/02/24 20:34:20 UTC
DERBY EMBEDDED IN NETBEANS PROGRAM
Hello,
I am using netbeans. When I use embedded driver in netbeans i get errors, even though the derbyclient is in the
library. If i add derbyclient.jar in the client it runs perfectly, even though the driver is:
Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
What is wrong ?
Bashiro
Drammen-Norway
Re: DERBY EMBEDDED IN NETBEANS PROGRAM
Posted by Bryan Pendleton <bp...@gmail.com>.
> I am using netbeans. When I use embedded driver in netbeans i get errors, even though the derbyclient is in the
> library. If i add derbyclient.jar in the client it runs perfectly, even though the driver is:
> Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
The choice of the driver is also dependent on the syntax you
provide in your connection URL.
For an embedded Derby instance, use the EmbeddedDriver, include derby.jar
in your classpath, and specify jdbc:derby:dbname as your connection URL.
For a client-server Derby applicaty, use the ClientDriver, include
derbyclient.jar in your classpath, and specify jdbc:derby://host:port/dbname
as your connection URL.
thanks,
bryan