db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren" <m.v.lunte...@gmail.com>
Subject Re: Including a derby db within the same jar as the application
Date Mon, 29 Oct 2007 17:04:16 GMT
On 10/28/07, David Leader <d.leader@bio.gla.ac.uk> wrote:
> A postscript to the solution to the problem:
>
> jdbc:derby:jar:(MyApp.jar)MyDB
>
> When I used exe4j to create a Windows .exe from MyApp.jar it worked
> fine without specifying any derby properties.
>
> When I created a Mac application bundle (can be done with Apple's
> JarBundler) and tried to run it, it complained that it couldn't find
> the database. To get it to work I had to include the following key-
> value pair as a java property in the Info.plist:
>
> derby.system.home = $APP_PACKAGE/Contents/Resources/Java/
>
> Just  thought I'd mention this for completeness.
>
> David
>
There is possibly a difference in what the jvm you're using on the mac
reports for the system property 'user.dir'.

Derby will assume derby.properties to life in user.dir if
derby.system.home is not set.

hth
Myrna

Mime
View raw message