db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauro Molinari <mauro.molin...@cardinis.com>
Subject Newbie: problem setting the derby.system.home directory
Date Mon, 09 Jun 2008 14:05:25 GMT

I started to use Derby, but I have a problem. I set derby.system.home 
with System.setProperty(String, String) before using derby. Then, the 
output is:

2008-06-09 13:34:33.343 GMT Thread[main,5,main] 
file:\C:\DOCUME~1\mauro\LOCALS~1\Temp\MyTestTempDir\derby.log (The 
filename, directory name, or volume label syntax is incorrect)
2008-06-09 13:34:33.656 GMT:
  Booting Derby version The Apache Software Foundation - Apache Derby - - (648739): instance a816c00e-011a-6d89-037f-0000699c0a96
on database directory D:\workspace\Comuni K5.0\MyTest

As you can see, the database (whose name is MyTest) is actually created 
in another directory (D:\workspace\Comuni K5.0), while I would have 
liked it to be created in C:\DOCUME~1\mauro\LOCALS~1\Temp\MyTestTempDir: 
why does this happen? Why does Derby complain that 
file:\C:\DOCUME~1\mauro\LOCALS~1\Temp\MyTestTempDir\derby.log is not a 
valid filename?
Please note that the directory I'd like to use has just been created by 
my own code, so there should not be permission problems...

I would like to create a new database in there, so I'm expecting that 
derby.log isn't found there, but I wouldn't expect Derby to complain and 
then to use another directory...

Please note I'm using embedded Derby.

Any help would be appreciated.
Thank you in advance!

Mauro Molinari
Software Developer

View raw message