db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jørgen Løland <Jorgen.Lol...@Sun.COM>
Subject Re: Derby, Java RMI, Tomcat 5 and an annoying classpath
Date Fri, 07 Mar 2008 13:06:21 GMT
rebels_mascot wrote:
> I've tried:
> 
> CLASSPATH=.;%DERBY_HOME%\lib\derby.jar

Shouldn't that be ':' instead of ';' in the classpath, like this:

CLASSPATH=.:\path_to_derby\lib\derby.jar

It also seems that you try to use the embedded driver to connect to a 
Derby server. Basically, you can connect to a Derby database either 
using the embedded or the client/server mode

* If embedded, use:
  - Driver: "org.apache.derby.jdbc.EmbeddedDriver" (found in derby.jar)
  - Connection URL: 
"jdbc:derby:dsChatTestDB;create=true;user=admin;password=admin"

* If client/server, use
  - Driver: "org.apache.derby.jdbc.ClientDriver" (found in derbyclient.jar)
  - Connection URL: 
"jdbc:derby://localhost:1527/dsChatTestDB;create=true;user=admin;password=admin"

For more information, see e.g.
http://db.apache.org/derby/docs/dev/getstart/cgstutorialintro.html
http://db.apache.org/derby/docs/dev/adminguide/cadminapps.html


Hope this helps

-- 
Jørgen Løland

Mime
View raw message