[Solved] NoClassDefFoundError: gherkin/IGherkinDIalectProvider

I created a simple cucumber test that returns a sequence number.
The project builds successfully.
I am using the Intellij IDE.
When I try to run the cucumber test, I get this error:

Exception in thread “main” java.lang.NoClassDefFoundError:
gherkin/IGherkinDialectProvider at at
cucumber.api.cli.Main.main( ….

This is a gradle build and I have these dependencies listed below:


In other posts, it states to remove transitive dependencies, such as the cucumber-java, junit and jvm but I still get the error.
I also tried adding gherkin: `io.

cucumber:gherkin:3.2.0 but it gives the same error.

I found a table referring to the version of gherkin that goes with cucumber and for cucumber 3x there is no gherkin version to add.

So I am at a loss as to way I am getting this error.

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Most Popular

To Top
India and Pakistan’s steroid-soaked rhetoric over Kashmir will come back to haunt them both clenbuterol australia bossier man pleads guilty for leadership role in anabolic steriod distribution conspiracy