Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 14844 invoked from network); 20 May 2004 06:53:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 May 2004 06:53:51 -0000 Received: (qmail 55246 invoked by uid 500); 20 May 2004 06:54:20 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 55200 invoked by uid 500); 20 May 2004 06:54:20 -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 55184 invoked by uid 98); 20 May 2004 06:54:20 -0000 Received: from rambiusparkisanius@yahoo.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(66.218.78.139):. Processed in 0.011272 secs); 20 May 2004 06:54:20 -0000 X-Qmail-Scanner-Mail-From: rambiusparkisanius@yahoo.com via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(66.218.78.139):. Processed in 0.011272 secs) Received: from unknown (HELO web40602.mail.yahoo.com) (66.218.78.139) by hermes.apache.org with SMTP; 20 May 2004 06:54:19 -0000 Message-ID: <20040520065324.5871.qmail@web40602.mail.yahoo.com> Received: from [217.75.152.13] by web40602.mail.yahoo.com via HTTP; Wed, 19 May 2004 23:53:24 PDT Date: Wed, 19 May 2004 23:53:24 -0700 (PDT) From: Ivan Ivanov Subject: Re: My 1st Ant Script. having trouble To: Ant Users List In-Reply-To: <6a0b936a04d9.6a04d96a0b93@drexel.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, --- ah49@drexel.edu wrote: > Hey guys this is my 1st ANT script. > 1st of all i get a bunch of java cannot open zip > errors. i think maybe the ClassPath i set in > might not be getting all the jars in that lib > directory. > I think also when it tries to run the main app, it > cannot find schedule.svg which i do copy into that > directory. It doesnt't find it since you declared it as File startFile = new File("schedule.svg"); and it searches it in the directory where java was started. If you change it to File startFile = new File("build/schedule.svg"); it will run. In my opinion it is better to pass the file location as a argument to java: Ant resolves params to absolute file names and thus java will find them with no problems. As for "java cannot open zip" errors I do not know why they appear. HTH Ivan __________________________________ Do you Yahoo!? Yahoo! Domains � Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org