db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nirmal Fernando <nirmal070...@gmail.com>
Subject Re: Fw: Juni Tests
Date Sat, 10 Apr 2010 11:37:49 GMT
Hi Tiago,

Yes, I have placed it tools/java. Can you think of any other reason?

Thanks !!

On Sat, Apr 10, 2010 at 4:58 PM, Tiago Espinha <tiago.derby@yahoo.co.uk>wrote:

> Hello Nirmal,
>
> Did you place the JUnit jar in the classpath? That error basically says
> that Java isn't finding the JUnit classes, so make sure you have included
> it.
>
> I usually just place it under tools/java.
>
> Tiago
>
> ------------------------------
> *From:* Nirmal Fernando <nirmal070125@gmail.com>
> *To:* derby-dev@db.apache.org
> *Sent:* Sat, 10 April, 2010 12:13:24
> *Subject:* Re: Fw: Juni Tests
>
> Hi All,
>
> @Tiago: Thanks for the reply & advice.
>
> But still I get the same error.
>
> C:\OtherNirmal\GSoC\Testing\suites.ALL>java junit.textui.TestRunner
> org.apache.d
> erbyTesting.functionTests.suites.All
> Exception in thread "main" java.lang.NoClassDefFoundError:
> junit/textui/TestRunn
> er
> Caused by: java.lang.ClassNotFoundException: junit.textui.TestRunner
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> Could not find the main class: junit.textui.TestRunner.  Program will exit.
>
>
> Can someone help me to overcome this?
>
> Thanks in advance !!!!
>
>
> On Sat, Apr 10, 2010 at 4:30 PM, Tiago Espinha <tiago.derby@yahoo.co.uk>wrote:
>
>> Hello Nirmal,
>>
>> It is usually best to ask questions on the list as then everyone can have
>> a go at helping you. That's why I'm forwarding this to the list in case you
>> have any further questions.
>>
>> As for this question, you have a typo on the class name for junit, it
>> should be "junit.textui.TestRunner" (notice, textui and not testui).
>>
>> Hope it helps,
>> Tiago
>>
>> ----- Forwarded Message ----
>> *From:* Nirmal Fernando <nirmal070125@gmail.com>
>> *To:* Tiago Espinha <tiago.derby@yahoo.co.uk>
>> *Sent:* Sat, 10 April, 2010 11:53:28
>> *Subject:* Juni Tests
>>
>> Hi Tiago,
>>
>> Sorry for disturbing you. I have another question.
>>
>> When I issued java junit.testui.TestRunner
>> org.apache.derbyTesting.functionTests.suites.All I got an error :(.
>>
>> C:\OtherNirmal\GSoC\Testing\suites.ALL>java junit.testui.TestRunner
>> org.apache.d
>> erbyTesting.functionTests.suites.All
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> junit/testui/TestRunn
>> er
>> Caused by: java.lang.ClassNotFoundException: junit.testui.TestRunner
>>         at java.net.URLClassLoader$1.run(Unknown Source)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(Unknown Source)
>>         at java.lang.ClassLoader.loadClass(Unknown Source)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>          at java.lang.ClassLoader.loadClass(Unknown Source)
>>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>> Could not find the main class: junit.testui.TestRunner.  Program will
>> exit.
>>
>>
>> You have any idea how can I overcome this??
>>
>> Thank you very much !!!
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> C.S.Nirmal J. Fernando
>> Department of Computer Science & Engineering,
>> Faculty of Engineering,
>> University of Moratuwa,
>> Sri Lanka.
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> C.S.Nirmal J. Fernando
> Department of Computer Science & Engineering,
> Faculty of Engineering,
> University of Moratuwa,
> Sri Lanka.
>
>


-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Mime
View raw message