Cucumber not running | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos

Selenium Training Forum

Cucumber not running

R
Rathindra Nath Saha Post on 03/11/2019

I am getting the following error while running the Cucumber code 

java.lang.ClassNotFoundException: com.cucumber.runner.Runner

 

I have attached the screenshot for the reference

R
Rathindra Nath Saha Reply on 03/11/2019

I have rerun my code, even after changing the set up I am getting the following error.

Class not found com.cucumber.runner.RediffRun
java.lang.ClassNotFoundException: com.cucumber.runner.RediffRun
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:685)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:421)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:444)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

 

Attached is the screenshot for your details 

S

Instructor

Support Team Reply on 06/11/2019

You have not imported all jars in cucumber...