Posted By:
vijay_M
Posted On:
Wednesday, April 9, 2003 07:13 AM
I installed Junit 3.8.1, tested it as per Junit faq and found that the install was successful. However, when I tried compiling the "simple test" given in FAQ (chapter 4, item 1: How do I write and run a simple test? ), I got a compilation error as follows: D:>javac SimpleTest.java SimpleTest.java:18: Class junit.faqsamples.Collection not found in type declarat ion. Collection collection = new ArrayList(); ^ SimpleTest.java:18: Class junit.faqsamples.ArrayList not found in type declarati on. Collection collection = new ArrayList(); ^ 2 errors I have jdk1.1.8 and my classpath includes
More>>
I installed Junit 3.8.1, tested it as per Junit faq and found that the install was successful.
However, when I tried compiling the "simple test" given in FAQ (chapter 4, item 1: How do I write and run a simple test? ), I got a compilation error as follows:
D:>javac SimpleTest.java
SimpleTest.java:18: Class junit.faqsamples.Collection not found in type declarat
ion.
Collection collection = new ArrayList();
^
SimpleTest.java:18: Class junit.faqsamples.ArrayList not found in type declarati
on.
Collection collection = new ArrayList();
^
2 errors
I have jdk1.1.8 and my classpath includes
D:junit3.8.1junit.jar
D:jdk1.1.8libclasses.zip
Question: Where have I gone wrong ?
What is the correction ?
Thank you.
<<Less