Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Evan Moreshead

Greenhorn
+ Follow
since Jul 30, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Evan Moreshead

Sorry bout that, here's a good chunk of my what I'm working with.



12 years ago
Hi,
I'm having trouble trying to run a selenium test suite as through ANT. The suite runs as main method and that's I'm trying to run. But when I run the suite I get a beautiful exception which I can't seem to resolve. I've been getting:

[java] java.lang.NoClassDefFoundError: junit/framework/Test
[java] Caused by: java.lang.ClassNotFoundException: junit.framework.Test
[java] at java.net.URLClassLoader$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[java] Could not find the main class: com.ew.vendor.tests.Suite. Program will exit.
[java] Exception in thread "main"
[java] Java Result: 1

I do have my JUnit in my classpath, I've run test that they recomend running to make sure everything has been installed correctly
I have tried running the jar file I make through the command line and it fails, but I can run it through eclipse.

any help would be very much appreciated.
Thanks
12 years ago