Hello friends,
I installed junit4.8.1 in my windows xp, while testing I see following errors.Below are my class path and the location of Junit where I installed. I would really appreciate if some one can help me on this
CLASSPATH =.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip;C:\junit4.8.1\junit4.8.1\junit4.8.1.jar
JAVA_HOME = C:\Java\jdk1.5.0\bin
Junit installation path C:\junit4.8.1\junit4.8.1\junit\tests
when i tried to test my installation from cmd I see below error
Exception in thread "main" java.lang.NoClassDefFoundError: org/junit/runner/Juni
tcore
Caused by: java.lang.ClassNotFoundException: org.junit.runner.Junitcore
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)
Could not find the main class: org.junit.runner.Junitcore. Program will exit.
Can some one please help, I spent quite some time and couldnt figure out the issue
Appreciate your help!!