java.lang.NoClassDefFoundError: org.junit.runner.Runner


Solutions on the web17

Solution icon of googlegroups
via Google Groups by Hontvári József, 1 year ago
org.junit.runner.Runner

Solution icon of stackoverflow
via Stack Overflow by Unknown author, 1 year ago
org.junit.runner.Runner

Solution icon of googlegroups
org.junit.runner.Runner

Solution icon of stackoverflow
org.junit.runner.Runner

Solution icon of stackoverflow
via Stack Overflow by thanos_tz
, 1 year ago
org.junit.runner.Runner

Solution icon of web
org.junit.runner.Runner

Solution icon of googlegroups
via Google Groups by tikiwade, 1 year ago
org.junit.runner.Runner

Solution icon of googlegroups
via Google Groups by Eddie Cheng, 1 year ago
org.junit.runner.Runner

Solution icon of googlegroups
org.junit.runner.Runner

Stack trace

java.lang.NoClassDefFoundError: org.junit.runner.Runner
	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
	at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.<init>(JUnit4TestSet.java:45)
	at org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
	at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)[INFO]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 more bugmates