• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to solve java.lang.ClassNotFoundException: org.junit.runner.notification.StoppedByUserException

 
Ranch Hand
Posts: 85
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I run a JUNIT test from eclipse, I am getting this error: "java.lang.ClassNotFoundException: org.junit.runner.notification.StoppedByUserException"

Stack trace:


Please suggest.
 
Marshal
Posts: 69813
277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is that class and how are you adding it to your CLASSPATH?
 
swathi bairu
Ranch Hand
Posts: 85
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Where is that class and how are you adding it to your CLASSPATH?



Here is my class:

AllTests.java



This is in my project/src/test/java. I did not understand your question "how am I adding it to my class path?". I am running this class as JUnit test.
 
Did you miss me? Did you miss this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic