Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 49227 invoked from network); 8 Jun 2004 14:03:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Jun 2004 14:03:45 -0000 Received: (qmail 60023 invoked by uid 500); 8 Jun 2004 14:03:41 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 59819 invoked by uid 500); 8 Jun 2004 14:03:39 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 59805 invoked by uid 99); 8 Jun 2004 14:03:39 -0000 Received: from [194.42.245.4] (HELO pegasus.axiomsystems.com) (194.42.245.4) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 08 Jun 2004 07:03:39 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Re: Problem with Database connections and Classpaths Date: Tue, 8 Jun 2004 15:00:41 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: Problem with Database connections and Classpaths Thread-Index: AcRKNTTBe8NcFsUWTzyEbSbFDH5QFADK3qNg From: "Keith Hatton" To: "Ant Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Joanne, Not sure whether this is your problem, but java -jar and java -classpath = don't always go together. (The Ant task is just a wrapper for these = command lines). You might try putting a Class-Path: classes12.zip entry into the = manifest of ${utiljar}, put both in the same directory, and see if that = works. Hope this helps, Keith -----Original Message----- From: Joanne L Corless [mailto:jcorless@csc.com] Sent: 04 June 2004 14:10 To: Ant Users List Subject: Re: Re: Problem with Database connections and Classpaths Hi Ivan, Yes thats the gist of it - However I thought I had passed the = classes12.zip to My build script looks like so ~ And when you run it in verbose mode you can actually see the = classes12.zip file on the classpath - but the utility doesn't seem to want to = recognise the files I have found a work around - if you unzip the classes12.zip and jar them into the jar file being run then it works Joanne Corless ------ Ivan Ivanov wrote: >Hi Joanne, >As far I undestand you wrote a class in which you make >calls to your oracle db and you invoke it with Ant >with task. Am I right? If so you should send >classptah attribute to and add oracle jdbc >driver in it. >--- Joanne L Corless wrote: >> Hi, >> >> I am trying to develop a standalone application that >> makes a number of >> calls to an oracle database. >> >> However although it build OK when I try to run it >> through ant - I get a >> ClassNotFoundException. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org