Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 91056 invoked from network); 22 Mar 2002 18:45:25 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Mar 2002 18:45:25 -0000 Received: (qmail 29863 invoked by uid 97); 22 Mar 2002 18:45:21 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 29846 invoked by uid 97); 22 Mar 2002 18:45:20 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 29835 invoked from network); 22 Mar 2002 18:45:20 -0000 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: Problem with JUnit batchtest Date: Fri, 22 Mar 2002 13:45:50 -0500 Message-ID: <58927B6021350742B71925118DF9830E074D14@exchnode1.datekus.datek.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem with JUnit batchtest Thread-Index: AcHR0OyRAJo8qg6oStOryBcUYXUhKgAACXRg From: "Larason, Timothy" To: "Ant Users List" X-OriginalArrivalTime: 22 Mar 2002 18:45:51.0599 (UTC) FILETIME=[CA547FF0:01C1D1D1] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I downloaded it from the ant website, and yes it does have the class in = the jar. The problem is the jar is never being referenced in the = execution classpath. In fact, none of the $ANT_HOME/lib jars are being = referenced. On linux they are though. -----Original Message----- From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com] Sent: Friday, March 22, 2002 1:39 PM To: Ant Users List Subject: Re: Problem with JUnit batchtest Where did you obtain optional.jar? Does it actually have the JUnitTestRunner class in it? Erik ----- Original Message ----- From: "Larason, Timothy" To: Sent: Friday, March 22, 2002 1:23 PM Subject: Problem with JUnit batchtest I'm having some problems with the optional task JUnit (more specifically using batchtest within JUnit). Everything works fine under Linux, but = of course, like everything else, it all blows up under Windows. I have the optional.jar and the junit.jar in my $ANT_HOME/lib directory. When I try to run a junit task (using batchtest), everything compiles correctly, but when it goes to run the tests, it throws an exception: java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/optional/jar/junit/JUnitTestRunner I ran ant with "-v" and see that for the compile, the $ANT_HOME/lib libraries are all included in the classpath. For execution (with = java.exe) they aren't. Both the compile and the execution use the same "classpath refid". Anyone have any ideas? Thanks. tim -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: For additional commands, e-mail: