I just installed JUnit but I can't get it to work:
C:\tools\junit4.6>java org.junit.runner.JUnitCore org.junit.tests.AllTests.
JUnit version 4.6
Could not find class: org.junit.tests.AllTests.
Time: 0
OK (0 tests)
This are my environment variables:
CLASSPATH=.;C:\Program Files\Java\jre1.5.0_11\lib\ext\QTJava.zip;c:\tools\junit4
.6\junit-4.6.jar;c:\tools\junit4.6\
JAVA_HOME=c:\Program Files\Java\jdk1.6.0_07
I just followed these steps:
Below are the installation steps for installing JUnit:
- unzip the junit4.6.zip file
- add junit-4.6.jar to the CLASSPATH. For example: set classpath=%classpath%;INSTALL_DIR\junit-4.6.jar;INSTALL_DIR
- test the installation by running java org.junit.runner.JUnitCore org.junit.tests.AllTests.
What could be wrong?