• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2620
  • Last Modified:

classNotFoundException from JUnit test cases?

I had both Junit 3.8 and 4.1 jar files and test cases. They are working fine till
I removed Junit 3.8 jar reference from Eclipse project.
Now I am not able to run any of test cases.
Can't figure out what I did.
Any Suggestions?

java.lang.ClassNotFoundException: com.myp1.myp2.AllTestSuite

at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:693)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:429)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
  • 2
1 Solution
They are working fine till
I removed Junit 3.8 jar reference from Eclipse project.
Those classes are not the problem. The class that can't be found is AllTestSuite
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now