Discussion:
The import org.junit cannot be resolved
asafatide
2007-07-30 15:41:25 UTC
Permalink
With this line:
import org.junit.*;
I get this error:
The import org.junit cannot be resolved

Using Eclipse, I have included junit.jar in my project.
What is the problem?
Is there another jar file I need?




Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/junit/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/junit/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:junit-***@yahoogroups.com
mailto:junit-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
junit-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
J. B. Rainsberger
2007-07-31 04:16:03 UTC
Permalink
Post by asafatide
import org.junit.*;
The import org.junit cannot be resolved
Using Eclipse, I have included junit.jar in my project.
What is the problem?
Is there another jar file I need?
You might have the wrong junit.jar.

org.junit.* is JUnit 4. You might have JUnit 3.

If you can import junit.framework.*, then you have JUnit 3. Go download
JUnit 4, as version 4 is completely different from version 3.

Good luck.
--
J. B. (Joe) Rainsberger :: http://www.jbrains.ca
Your guide to software craftsmanship
JUnit Recipes: Practical Methods for Programmer Testing
2005 Gordon Pask Award for contribution Agile Software Practice



Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/junit/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/junit/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:junit-***@yahoogroups.com
mailto:junit-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
junit-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Loading...