db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <Richard.Hille...@Sun.COM>
Subject Re: Newbie: problem setting the derby.system.home directory
Date Mon, 09 Jun 2008 16:17:17 GMT
Hi Mauro,

1) Have you tried setting derby.system.home on the vm boot command line 
via a -D parameter? What behavior do you see when you try this?

2) What value are you setting derby.system.home to?

3) If you are seeing a stack trace, could you share that with us?

Thanks,
-Rick

Mauro Molinari wrote:
> Hello!
>
> 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] 
> java.io.FileNotFoundException: 
> 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 - 
> 10.4.1.3 - (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!
>


Mime
View raw message