1 Replies Last post: Feb 24, 2004 6:49 PM by Dave Griffith  
Jim Clark Novice 107 posts since
Aug 23, 2002
Currently Being Moderated

Feb 24, 2004 6:11 PM

Have to add junit.jar to classpath?

I realize this seems like a no brainer, but when I ran my test cases in 4.0 I got the following:

 

java.lang.NoClassDefFoundError: junit/textui/ResultPrinter

     at java.lang.Class.forName0(Native Method)

     at java.lang.Class.forName(Class.java:115)

     at com.intellij.rt.execution.application.AppMain.main(Unknown Source)

Exception in thread "main" Process terminated with exit code 1

 

I had junit (3.7) in my classpath from my 3.0 project.  However, I had to add the IDEA junit.jar to the classpath to get junit working.  Is this normal or should it have been included by default?

 

Thanks,

Jim

Dave Griffith Expert 2,784 posts since
Aug 21, 2002
Currently Being Moderated
Feb 24, 2004 6:49 PM in response to: Jim Clark
Re: Have to add junit.jar to classpath?

 

You'll need to upgrade to Ant 3.8.1 (which is pretty painless).  The new JUnit test-runner has a dependency on it. 

 

--Dave Griffith

More Like This

  • Retrieving data ...