db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Embretsen <John.Embret...@Sun.COM>
Subject Re: Starting Derby in "My Documents" from Tomcat
Date Tue, 07 Mar 2006 09:40:22 GMT
Rhys Campbell wrote:

> Stuart,
> 
> NT has the %username% variable that you may be able to use in your batch
> file.
> 
> http://www.computing.net/programming/wwwboard/forum/12736.html 
> 
> Rhys


Here's the full list of system and local environment variables for WinXP:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_shelloverview.mspx

(snipped from http://issues.apache.org/jira/browse/DERBY-620)

-- 
John


> 
> -----Original Message-----
> From: Stuart Barker [mailto:stuart.barker@practiv.com] 
> Sent: 06 March 2006 18:46
> To: 'Derby Discussion'
> Subject: RE: Starting Derby in "My Documents" from Tomcat
> 
> 
> Figured it out folks...
> 
> I'm passing 
> 
> -Dderby.system.home="%APPDATA%\Derby" 
> 
> through to catalina.bat on startup. Whilst it's not 'My Documents' it's
> the
> next best thing!
> 
> Stuart
> 
> -----Original Message-----
> From: Stanley Bradbury [mailto:Stan.Bradbury@gmail.com] 
> Sent: 06 March 2006 18:39
> To: Derby Discussion
> Subject: Re: Starting Derby in "My Documents" from Tomcat
> 
> Stuart Barker wrote:
> 
>> Hi All,
>>
>> I have a Derby instance starting up from within my Tomcat application,
> 
>> as the server.xml excerpt shows below. However, I'd like the DB to 
>> startup in the 'My Document' folder for the user. Is there anyway in 
>> the server config I can get it to do this?
>>


Mime
View raw message