From derby-user-return-190-apmail-db-derby-user-archive=db.apache.org@db.apache.org Mon Nov 15 15:47:47 2004 Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 11416 invoked from network); 15 Nov 2004 15:47:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Nov 2004 15:47:47 -0000 Received: (qmail 80455 invoked by uid 500); 15 Nov 2004 15:47:46 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 80418 invoked by uid 500); 15 Nov 2004 15:47:46 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 80407 invoked by uid 99); 15 Nov 2004 15:47:46 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of chicagokarl@gmail.com designates 64.233.184.199 as permitted sender) Received: from [64.233.184.199] (HELO wproxy.gmail.com) (64.233.184.199) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 15 Nov 2004 07:47:43 -0800 Received: by wproxy.gmail.com with SMTP id 69so193511wra for ; Mon, 15 Nov 2004 07:47:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=i69Vmp8E08eKSnuIibwJmSRwFruFGEy1PCIS+IEAA99JYm/+7aH9F3ocSBRVQiqPx3cvZt8Z+Gz4l1YvJ9JCVpEwmczYXyfhdLaupgkqRP/IVVPfYeHpHTp7tbSIumRNy8xI4UbIfEdE9MAdEYs29CHOS4Bq0sjksI3bzJYDxBg= Received: by 10.54.38.45 with SMTP id l45mr377046wrl; Mon, 15 Nov 2004 07:47:39 -0800 (PST) Received: by 10.54.31.53 with HTTP; Mon, 15 Nov 2004 07:47:39 -0800 (PST) Message-ID: <5e897eeb0411150747556cec54@mail.gmail.com> Date: Mon, 15 Nov 2004 16:47:39 +0100 From: Karl Ostendorf Reply-To: Karl Ostendorf To: Derby Discussion , boehme@eyemaginations.com Subject: Re: Database location In-Reply-To: <4198CBFF.9030303@eyemaginations.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <4198CBFF.9030303@eyemaginations.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N When starting the JVM, set the -Dderby.system.home= option. All connection URLs will then be relative to the given system home. For example, a database created with with the name of "foo" in the "/var/derby_data" directory can be accessed with a connection string of "jdbc:derby:foo" so long as you have started the JVM with the -Dderby.system.home=/var/derby_data option. -- Karl Ostendorf On Mon, 15 Nov 2004 10:32:15 -0500, Richard Boehme wrote: > Is there any way to specify where I've placed the database when > accessing it from Java? I've created it using ij and I'm launching it > from a JVM that I doin't know the location of. > > Thanks. > > Richard Boehme > >