Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Connecting to Derby via Embedded Driver
Connecting to Derby via Embedded Driver [message #22692] Tue, 07 November 2006 01:14 Go to next message
Eclipse UserFriend
Originally posted by: rhr2.psu.edu

I've just installed DTP on Windows XP and am experiencing problems setting
up the embedded driver and connection as recommended in the "Getting
Started with DTP" instructions. I modified the eclipse.ini file to set
the derby.system.home property to point to C:\DB as the derby system
directory. When I set up the driver with URL jdbc:derby:;create=true and
new database name SI_DB, then try to connect, I get a couple of "unable to
create database" errors and the derby.log shows the following:

ERROR XBM0J: Directory C:\DB\C:\DB already exists.

Any ideas? I've tried many other permutations for the URL including
specifying the full path jdbc:derby:C:\DB\SI_DB;create=true, specifying
just the database jdbc:derby:SI_DB;create=true, etc. - all with the same
result.
Re: Connecting to Derby via Embedded Driver [message #22957 is a reply to message #22692] Thu, 09 November 2006 01:46 Go to previous message
Anil Samuel is currently offline Anil SamuelFriend
Messages: 108
Registered: July 2009
Senior Member
I usually use the following as the jdbc url for the embedded db
jdbc:derby:/tmp/DerbyDB

and I use the same with ";create=true" optionwhen I connect using ij
from cmd line. This way the url is consistent when I use on a unix env.
as well.

Remember to create a /tmp directory on your current drive (E: in my case
with Win XP)

I didnot ever had to modify any sys variables; so I suggest get rid of
derby.system.home.

Anthos

bob rivoir wrote:
> I've just installed DTP on Windows XP and am experiencing problems
> setting up the embedded driver and connection as recommended in the
> "Getting Started with DTP" instructions. I modified the eclipse.ini
> file to set the derby.system.home property to point to C:\DB as the
> derby system directory. When I set up the driver with URL
> jdbc:derby:;create=true and new database name SI_DB, then try to
> connect, I get a couple of "unable to create database" errors and the
> derby.log shows the following:
> ERROR XBM0J: Directory C:\DB\C:\DB already exists.
>
> Any ideas? I've tried many other permutations for the URL including
> specifying the full path jdbc:derby:C:\DB\SI_DB;create=true, specifying
> just the database jdbc:derby:SI_DB;create=true, etc. - all with the same
> result.
>
>
Re: Connecting to Derby via Embedded Driver [message #583001 is a reply to message #22692] Thu, 09 November 2006 01:46 Go to previous message
Anil Samuel is currently offline Anil SamuelFriend
Messages: 108
Registered: July 2009
Senior Member
I usually use the following as the jdbc url for the embedded db
jdbc:derby:/tmp/DerbyDB

and I use the same with ";create=true" optionwhen I connect using ij
from cmd line. This way the url is consistent when I use on a unix env.
as well.

Remember to create a /tmp directory on your current drive (E: in my case
with Win XP)

I didnot ever had to modify any sys variables; so I suggest get rid of
derby.system.home.

Anthos

bob rivoir wrote:
> I've just installed DTP on Windows XP and am experiencing problems
> setting up the embedded driver and connection as recommended in the
> "Getting Started with DTP" instructions. I modified the eclipse.ini
> file to set the derby.system.home property to point to C:\DB as the
> derby system directory. When I set up the driver with URL
> jdbc:derby:;create=true and new database name SI_DB, then try to
> connect, I get a couple of "unable to create database" errors and the
> derby.log shows the following:
> ERROR XBM0J: Directory C:\DB\C:\DB already exists.
>
> Any ideas? I've tried many other permutations for the URL including
> specifying the full path jdbc:derby:C:\DB\SI_DB;create=true, specifying
> just the database jdbc:derby:SI_DB;create=true, etc. - all with the same
> result.
>
>
Previous Topic:How to execute SQL script?
Next Topic:Could not connect; Native Library loaded in another classloader
Goto Forum:
  


Current Time: Fri Apr 26 05:28:57 GMT 2024

Powered by FUDForum. Page generated in 0.02785 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top