jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Having an issue importing junit." Watch "Having an issue importing junit." New topic

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.

I agree. Here's the link: http://aspose.com/file-tools
subject: Having an issue importing junit.
It's not a secret anymore!