This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes How can I solve this error? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How can I solve this error?" Watch "How can I solve this error?" New topic
Author

How can I solve this error?

Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
I get an error saying the following:

The type junit.framework.TestCase cannot be resolved. It is indirectly referenced from required .class files

Any ideas on how it can be resolved?

Thanks.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30085
    
149

Is JUnit 3.8 in your classpath.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
Jeanne Boyarsky wrote:Is JUnit 3.8 in your classpath.


I think I figured out the problem. I was creating a new class and not a new JUnit class.

Thanks.
Hrushikesh Deshmukh
Greenhorn

Joined: Jul 22, 2007
Posts: 4
Thanks a lot Jeanne...that resolved my error.


Thanks and Regards,<br /> <br />Hrushikesh<br />SCJP 1.5
Eric Fancis
Greenhorn

Joined: Jun 14, 2011
Posts: 29
Thanks for solving this. I had the same question. Now I have a new question.

Where does object Publisher come from? I'm getting an error: Publisher cannot be resolved to a type

Thanks

http://www.h4t3r.com
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30085
    
149

Publisher doesn't sound familiar. What is the package name that it is in?
 
Don't get me started about those stupid light bulbs.
 
subject: How can I solve this error?
 
Similar Threads
Import Problem
problem compiling the MVC
JBoss Jax-ws Timeout Configuration
Error: Could not resolve <yahoo:IPv4AddressInput> to a component implementation.
Reading DICOM Images