Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 86785 invoked from network); 9 Aug 2005 06:28:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2005 06:28:37 -0000 Received: (qmail 30261 invoked by uid 500); 9 Aug 2005 06:28:31 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 30042 invoked by uid 500); 9 Aug 2005 06:28:30 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 30029 invoked by uid 99); 9 Aug 2005 06:28:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 23:28:30 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 23:28:51 -0700 Received: from z011100.bk.fin.local (z011104.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id j796Rk0b013641 for ; Tue, 9 Aug 2005 08:28:01 +0200 Received: from z011134.bk.fin.local ([130.11.7.134]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Tue, 9 Aug 2005 08:27:54 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: AW: [Ant 1.6.5] -classpath problems Date: Tue, 9 Aug 2005 08:27:54 +0200 Message-ID: <3CD9A35A043C094EA8773DBB698E801B0376D092@z011134.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Ant 1.6.5] -classpath problems Thread-Index: AcWcYtDfXFBFTZulSsO8MmlTsm3JmwASINRg From: To: X-OriginalArrivalTime: 09 Aug 2005 06:27:54.0613 (UTC) FILETIME=[79C39A50:01C59CAB] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N you have to include the jars inside your path, not the directory. Jan >-----Urspr=FCngliche Nachricht----- >Von: nathan le [mailto:nathanialle@yahoo.co.uk]=20 >Gesendet: Montag, 8. August 2005 23:48 >An: user@ant.apache.org >Betreff: [Ant 1.6.5] -classpath problems > >Hi, > >I couldnt find anything to help me when searching the archives/bug DB > >I am trying to add some classpaths but when I try to run ant=20 >it complains that the jar file cannot be found > >I have checked spelling and that the jar file exists > >If anyone has had similar problems pls can you help > >Cheers > >Nate > >NB As a test I wrote a java class to load a class and print=20 >out a message if it fails and then tried to use both the cp=20 >classpath and lib flags > >none work > >Figure 1. Test class >public class Test { >public static void main(String[] args) { > Test test =3D new Test(); > ClassLoader loader =3D >test.getClass().getClassLoader(); > try { >loader.loadClass("org.eclipse.core.launcher.Main"); > } > catch(ClassNotFoundException ecnf) > { > System.out.println("CLASS NOT FOUND"); > } >} > >Figure 2. testBuild.xml > > > > > > > > > > >Figure 3. update.bat >SET ANT_OPTS=3D-cp "E:\IDE\eclipse\eclipse\startup.jar" > >ant -buildfile "testBuild.xml" -lib >"E:\IDE\eclipse\eclipse\startup.jar" -verbose -debug > >I need to point to some JARs that hold some java logging=20 >handlers. Thats the point behind this. > > >=09 >=09 > =09 >___________________________________________________________ >Yahoo! Messenger - NEW crystal clear PC to PC calling=20 >worldwide with voicemail http://uk.messenger.yahoo.com > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 >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