Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Having an issue importing junit.

 
John McClellan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic