AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread Knuplesch, Juergen
on: JOMO00 [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 28. August 2008 18:24 An: user@ant.apache.org Betreff: Re: java.lang.ClassNotFoundException" when running junit task Hi, I already have great problems with ant and junit. I run ant 1.6.5 and junit 4.5 is this combination ok? Should i bette

Re: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread JOMO00
Hi, I already have great problems with ant and junit. I run ant 1.6.5 and junit 4.5 is this combination ok? Should i better use ant 1.7.0 or 1.7.1? I always get a ClassDefNotFoundException or ClassNotFoundException. I tried to put junit.jar and my source directory to classpath, but i always get a

RE: AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread Martin Gainty
endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: AW: java.lang.ClassNotFoundException" when running junit task > Date: Thu, 28 Aug 2008 10:28:29 +0200 > From: [EMAIL PROTECT

Re: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread JOMO00
my source files are in C:\Documents and Settings\heinrich\test\srcafter compilation the jar file is in C:\Documents and Settings\heinrich\test\classes while running the Junit test in this jar file the Exception is thrown. -- View this message in context: http://www.nabble.com/java.lang.ClassNotF

Re: AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread JOMO00
gt; USt-IdNr.: DE 811944121 > -Ursprüngliche Nachricht- > Von: JOMO00 [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 28. August 2008 09:06 > An: user@ant.apache.org > Betreff: Re: java.lang.ClassNotFoundException" when running junit task > > > Hi All, > I read

AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread Knuplesch, Juergen
: java.lang.ClassNotFoundException" when running junit task Hi All, I read just read the thread below. Ich have the same Exception by unsing ant and . I know there is a problem with the classpath, but I don't know what is wrong. Which *jar files do I need an my classpath?Here

Re: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread JOMO00
Hi All, I read just read the thread below. Ich have the same Exception by unsing ant and . I know there is a problem with the classpath, but I don't know what is wrong. Which *jar files do I need an my classpath?Here my script

Re: java.lang.ClassNotFoundException" when running junit task

2007-12-05 Thread Steve Loughran
venkata prasad wrote: Hi All, I am getting the below error while execting junit task. Testsuite: BaseServiceCommunicationManagerTest Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec Caused an ERROR BaseServiceCommunicationManagerTest java.lang.ClassNotFoundException:

java.lang.ClassNotFoundException" when running junit task

2007-12-05 Thread venkata prasad
Hi All, I am getting the below error while execting junit task. Testsuite: BaseServiceCommunicationManagerTest Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec Caused an ERROR BaseServiceCommunicationManagerTest java.lang.ClassNotFoundException: BaseServiceCommunicatio

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-03 Thread Scot P. Floess
If memory serves, the location attribute should be a directory, jar file, etc. The path attribute is just that...it can contain a path ;) Alasdair Young wrote: It worked!! I used: instead of and it worked! I have no idea why it worked (This is my first major reworking of an

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
It worked!! I used: > > > instead of > > and it worked! I have no idea why it worked (This is my first major reworking of an ant buildfile that someone other than myself wrote) but it worked! Thank you very much! - alasdair Alasdair Young Scot P. Floess wrote: > Oops - my bad...no line

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
Incidentally, this did _not_ work for me, but thank you anyway! - alasdair Hussam Al-Tayeb wrote: >> I solved this by doing export >> CLASSPATH=$CLASSPATH:$ANT_HOME/lib/junit.jar > - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
"export CLASSPATH=$CLASSPATH:$ANT_HOME/lib/junit.jar" just out of interest, can my junit.jar file be called junit-4.1.jar? Or it MUST be called junit.jar? - alasdair Hussam Al-Tayeb wrote: > On 1/2/07, Alasdair Young <[EMAIL PROTECTED]> wrote: >> Hi! >> >> I'm trying to set up some automated bu

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Hussam Al-Tayeb
On 1/2/07, Alasdair Young <[EMAIL PROTECTED]> wrote: Hi! I'm trying to set up some automated builds for the first time here and I'm using a legacy ant build script that I've been hacking away at to get junit working. I am running ant 1.7, Junit 4.1 and java 1.5 on fedora core 5. When I try to

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Scot P. Floess
Oops - my bad...no line wrap :( Well something else to try, add the path to build-tests as part of the path... For instance if build-tests exists as /foo/bar/build-test, put /foo/bar/build-tests in as a path element... Or try using instead of I think the problem is you need to use the

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
Thanks for the fast response! I don't think that's it - ./build-tests should be in there - 3rd from the end. any other ideas perhaps? - alasdair Scot P. Floess wrote: > Looks like you need to put ./build-tests in your path element. > > location="./build-tests:.:../java/build:../thirdParty/si

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Scot P. Floess
Looks like you need to put ./build-tests in your path element. Alasdair Young wrote: I should also mention that ./build-tests/com/vigilos/apps/setup/TestScheduledtlTableModel.class exists and is the class I wish to run. Hmm... could it be an issue with not looking in the right directory? -

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
I should also mention that ./build-tests/com/vigilos/apps/setup/TestScheduledtlTableModel.class exists and is the class I wish to run. Hmm... could it be an issue with not looking in the right directory? - alasdair Alasdair Young wrote: > Hi! > > I'm trying to set up some automated builds for th

"java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
Hi! I'm trying to set up some automated builds for the first time here and I'm using a legacy ant build script that I've been hacking away at to get junit working. I am running ant 1.7, Junit 4.1 and java 1.5 on fedora core 5. When I try to get junit to run my tests via ant, I get the following: