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 <[email protected]>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 <[email protected]>
> *To:* Tiago Espinha <[email protected]>
> *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.