Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    I had this happen once and slomek's answer worked and then this same error happened again so I had to try this as well. It works fine again now, so to be safe you may want to do both of these things.
    – Roger
    Commented Sep 22, 2014 at 14:20
  • Thanks, its worked for me. But in my case, its not worked till close and reopened the project in eclipse. Commented Jul 22, 2015 at 10:25
  • In simple words do a 'mvn clean test-compile' and then run your Junit tests in eclipse. It worked for me. Thanks. Commented Aug 22, 2018 at 6:05
  • what if that is a n ant project
    – Abdul
    Commented May 11, 2021 at 10:15