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 Beginning Java and the fly likes Having an issue importing junit. 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 » Java » Beginning Java
Bookmark "Having an issue importing junit." Watch "Having an issue importing junit." New topic
Author

Having an issue importing junit.

John McClellan
Ranch Hand

Joined: Aug 15, 2011
Posts: 35
Hello. Let's assume my junit testing class file is equal to the following:



Earlier this did have other stuff in it, but I've taken it all out. When I try to compile this, I keep getting an error saying that junit.framework doesn't exist. The thing is the path for that is C:\Java\junit-4.9.jar, and that's exactly what I've set one of the entries to the classpath equal to. What gives? Thanks.
Ralph Cook
Ranch Hand

Joined: May 29, 2005
Posts: 479
There is not enough information here.

The way you say it, it sounds like this might not be the actual file that doesn't work, but one that we should "suppose". We need to see the actual file that doesn't work, pared down to as small an example as you can get.

We also need to know how you put the jar on the classpath. There are different ways to do that, and quirks for a couple of them.

You sound a bit like you want someone to say "Gosh, that's a bug, that's supposed to work.". If you've actually found a bug, someone will. But if you actually have, then you can show us what you actually did.

While you're at it, tell us how you do the compile.

rc
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Having an issue importing junit.
 
Similar Threads
how to execute testcase
How to use third-party packages?
path / classpath for JUnit
Unsupported major.minor version 49.0
package junit.framework does not exist