October 17th, 2012, 07:55 PM
(Java/Junit) Problem with CLASSPATH/compile Test file.
Okay, I am trying to test a class with a test class using import junit.framework.*; and I download the Junit library and saved it with a classpath of: C:\Program Files (x86)\Java\jdk1.7.0_07\lib\junit-4.8.2.j…
I set up the CLASSPATH, and every time I try to compile the test file I get this error: C:\Users\Anita\Documents\java\Project2>j… TestImage.java
TestImage.java:1: error: package junit.framework does not exist
Did I do something wrong in the classpath? I tried everything! Any suggestions on how I can finally get junit to work?
October 18th, 2012, 10:36 AM
Did you include the jar file in your CLASSPATH?