NoClassDefFoundError: cucumber/api/DataTable when trying to upgrade to Cucumber 4
up vote
1
down vote
favorite
I am trying to upgrade my tests to Cucumber 4. I am using testNG and Maven.
I have updated my dependency versions for the following:
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${version.cucumber}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-guice</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jvm</artifactId>
<version>${version.cucumber}</version>
</dependency>
But I keep getting the error 'java.lang.NoClassDefFoundError: cucumber/api/DataTable' when trying to run a test.
This is my runner:
import cucumber.api.CucumberOptions;
import cucumber.api.*;
import cucumber.api.testng.AbstractTestNGCucumberTests;
import org.testng.annotations.DataProvider;
@CucumberOptions(plugin = {"XXXX"},
features = "src/test/resources/features",
glue={"XXXXX"},
tags = {"@XXXXX"})
public class Cucumber4Runner extends AbstractTestNGCucumberTests {
@Override
@DataProvider(parallel = true)
public Object scenarios() {
return super.scenarios();
}
}
I have tried to ensure all versions of dependencies match up but struggling!
java cucumber
add a comment |
up vote
1
down vote
favorite
I am trying to upgrade my tests to Cucumber 4. I am using testNG and Maven.
I have updated my dependency versions for the following:
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${version.cucumber}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-guice</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jvm</artifactId>
<version>${version.cucumber}</version>
</dependency>
But I keep getting the error 'java.lang.NoClassDefFoundError: cucumber/api/DataTable' when trying to run a test.
This is my runner:
import cucumber.api.CucumberOptions;
import cucumber.api.*;
import cucumber.api.testng.AbstractTestNGCucumberTests;
import org.testng.annotations.DataProvider;
@CucumberOptions(plugin = {"XXXX"},
features = "src/test/resources/features",
glue={"XXXXX"},
tags = {"@XXXXX"})
public class Cucumber4Runner extends AbstractTestNGCucumberTests {
@Override
@DataProvider(parallel = true)
public Object scenarios() {
return super.scenarios();
}
}
I have tried to ensure all versions of dependencies match up but struggling!
java cucumber
Could you please comment if your problem has been solved and how. Would be nice to know for other SO visitors with a comparable problem.
– SubOptimal
Nov 22 at 13:24
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to upgrade my tests to Cucumber 4. I am using testNG and Maven.
I have updated my dependency versions for the following:
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${version.cucumber}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-guice</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jvm</artifactId>
<version>${version.cucumber}</version>
</dependency>
But I keep getting the error 'java.lang.NoClassDefFoundError: cucumber/api/DataTable' when trying to run a test.
This is my runner:
import cucumber.api.CucumberOptions;
import cucumber.api.*;
import cucumber.api.testng.AbstractTestNGCucumberTests;
import org.testng.annotations.DataProvider;
@CucumberOptions(plugin = {"XXXX"},
features = "src/test/resources/features",
glue={"XXXXX"},
tags = {"@XXXXX"})
public class Cucumber4Runner extends AbstractTestNGCucumberTests {
@Override
@DataProvider(parallel = true)
public Object scenarios() {
return super.scenarios();
}
}
I have tried to ensure all versions of dependencies match up but struggling!
java cucumber
I am trying to upgrade my tests to Cucumber 4. I am using testNG and Maven.
I have updated my dependency versions for the following:
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${version.cucumber}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-guice</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jvm</artifactId>
<version>${version.cucumber}</version>
</dependency>
But I keep getting the error 'java.lang.NoClassDefFoundError: cucumber/api/DataTable' when trying to run a test.
This is my runner:
import cucumber.api.CucumberOptions;
import cucumber.api.*;
import cucumber.api.testng.AbstractTestNGCucumberTests;
import org.testng.annotations.DataProvider;
@CucumberOptions(plugin = {"XXXX"},
features = "src/test/resources/features",
glue={"XXXXX"},
tags = {"@XXXXX"})
public class Cucumber4Runner extends AbstractTestNGCucumberTests {
@Override
@DataProvider(parallel = true)
public Object scenarios() {
return super.scenarios();
}
}
I have tried to ensure all versions of dependencies match up but struggling!
java cucumber
java cucumber
asked Nov 19 at 11:53
L. Ball
62
62
Could you please comment if your problem has been solved and how. Would be nice to know for other SO visitors with a comparable problem.
– SubOptimal
Nov 22 at 13:24
add a comment |
Could you please comment if your problem has been solved and how. Would be nice to know for other SO visitors with a comparable problem.
– SubOptimal
Nov 22 at 13:24
Could you please comment if your problem has been solved and how. Would be nice to know for other SO visitors with a comparable problem.
– SubOptimal
Nov 22 at 13:24
Could you please comment if your problem has been solved and how. Would be nice to know for other SO visitors with a comparable problem.
– SubOptimal
Nov 22 at 13:24
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
Most probably you have not aligned the import statements (other changes might be needed).
From the CHANGELOG.md
3.0.0
...
[Core] Replace DataTable with io.cucumber.datatable.DataTable (#1248 M.P. Korstanje, Björn Rasmusson, Marit van Dijk)
Based on your exception message your code is looking for cucumber.api.DataTable
edit There might be also a transient dependency from one of you other dependencies to an older cucumber version.
Assume the following dependencies only in your pom.xml
<properties>
<version.cucumber>4.2.0</version.cucumber>
</properties>
<dependencies>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${version.cucumber}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-guice</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jvm</artifactId>
<version>${version.cucumber}</version>
<type>pom</type>
</dependency>
</dependencies>
listing the project dependencies
$ mvn dependency:tree
would produce the following tree
[INFO] +- io.cucumber:cucumber-java:jar:4.2.0:test
[INFO] | - io.cucumber:cucumber-core:jar:4.2.0:compile
[INFO] | +- io.cucumber:cucumber-html:jar:0.2.7:compile
[INFO] | +- io.cucumber:gherkin:jar:5.1.0:compile
[INFO] | +- io.cucumber:tag-expressions:jar:1.1.1:compile
[INFO] | +- io.cucumber:cucumber-expressions:jar:6.2.0:compile
[INFO] | - io.cucumber:datatable:jar:1.1.7:compile
[INFO] | - io.cucumber:datatable-dependencies:jar:1.1.7:compile
[INFO] +- io.cucumber:cucumber-testng:jar:4.2.0:compile
[INFO] | - org.testng:testng:jar:6.14.3:compile
[INFO] | +- com.beust:jcommander:jar:1.72:compile
[INFO] | - org.apache-extras.beanshell:bsh:jar:2.0b6:compile
[INFO] +- io.cucumber:cucumber-guice:jar:4.2.0:test
[INFO] - io.cucumber:cucumber-jvm:pom:4.2.0:compile
Have a look if there is somewhere a dependency to
info.cuke:*
any version
io.cucumber:cucumber-core
version before 3
Does this mean that somewhere in my code, I have an older version of Cucumber trying to do something? If I can't see the error in my pom/dependencies, do you have any suggestions on how it might be fixed?
– L. Ball
Nov 19 at 14:15
@L.Ball Have a look to my updated answer. There might also be a transient dependency to an older cucumber version.
– SubOptimal
Nov 19 at 15:30
thanks - I did already try this, and no reference to info.cukes. All cucumber jars in the tree seem to be version 4.1.0. Puzzled!
– L. Ball
Nov 19 at 15:44
@L.Ball Have a look if you have a dependency to acucumber-core
with version < 3. I updated my answer.
– SubOptimal
Nov 20 at 7:03
@L.Ball Could you please add the whole dependency tree to your question.
– SubOptimal
Nov 20 at 7:06
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
Most probably you have not aligned the import statements (other changes might be needed).
From the CHANGELOG.md
3.0.0
...
[Core] Replace DataTable with io.cucumber.datatable.DataTable (#1248 M.P. Korstanje, Björn Rasmusson, Marit van Dijk)
Based on your exception message your code is looking for cucumber.api.DataTable
edit There might be also a transient dependency from one of you other dependencies to an older cucumber version.
Assume the following dependencies only in your pom.xml
<properties>
<version.cucumber>4.2.0</version.cucumber>
</properties>
<dependencies>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${version.cucumber}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-guice</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jvm</artifactId>
<version>${version.cucumber}</version>
<type>pom</type>
</dependency>
</dependencies>
listing the project dependencies
$ mvn dependency:tree
would produce the following tree
[INFO] +- io.cucumber:cucumber-java:jar:4.2.0:test
[INFO] | - io.cucumber:cucumber-core:jar:4.2.0:compile
[INFO] | +- io.cucumber:cucumber-html:jar:0.2.7:compile
[INFO] | +- io.cucumber:gherkin:jar:5.1.0:compile
[INFO] | +- io.cucumber:tag-expressions:jar:1.1.1:compile
[INFO] | +- io.cucumber:cucumber-expressions:jar:6.2.0:compile
[INFO] | - io.cucumber:datatable:jar:1.1.7:compile
[INFO] | - io.cucumber:datatable-dependencies:jar:1.1.7:compile
[INFO] +- io.cucumber:cucumber-testng:jar:4.2.0:compile
[INFO] | - org.testng:testng:jar:6.14.3:compile
[INFO] | +- com.beust:jcommander:jar:1.72:compile
[INFO] | - org.apache-extras.beanshell:bsh:jar:2.0b6:compile
[INFO] +- io.cucumber:cucumber-guice:jar:4.2.0:test
[INFO] - io.cucumber:cucumber-jvm:pom:4.2.0:compile
Have a look if there is somewhere a dependency to
info.cuke:*
any version
io.cucumber:cucumber-core
version before 3
Does this mean that somewhere in my code, I have an older version of Cucumber trying to do something? If I can't see the error in my pom/dependencies, do you have any suggestions on how it might be fixed?
– L. Ball
Nov 19 at 14:15
@L.Ball Have a look to my updated answer. There might also be a transient dependency to an older cucumber version.
– SubOptimal
Nov 19 at 15:30
thanks - I did already try this, and no reference to info.cukes. All cucumber jars in the tree seem to be version 4.1.0. Puzzled!
– L. Ball
Nov 19 at 15:44
@L.Ball Have a look if you have a dependency to acucumber-core
with version < 3. I updated my answer.
– SubOptimal
Nov 20 at 7:03
@L.Ball Could you please add the whole dependency tree to your question.
– SubOptimal
Nov 20 at 7:06
add a comment |
up vote
3
down vote
Most probably you have not aligned the import statements (other changes might be needed).
From the CHANGELOG.md
3.0.0
...
[Core] Replace DataTable with io.cucumber.datatable.DataTable (#1248 M.P. Korstanje, Björn Rasmusson, Marit van Dijk)
Based on your exception message your code is looking for cucumber.api.DataTable
edit There might be also a transient dependency from one of you other dependencies to an older cucumber version.
Assume the following dependencies only in your pom.xml
<properties>
<version.cucumber>4.2.0</version.cucumber>
</properties>
<dependencies>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${version.cucumber}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-guice</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jvm</artifactId>
<version>${version.cucumber}</version>
<type>pom</type>
</dependency>
</dependencies>
listing the project dependencies
$ mvn dependency:tree
would produce the following tree
[INFO] +- io.cucumber:cucumber-java:jar:4.2.0:test
[INFO] | - io.cucumber:cucumber-core:jar:4.2.0:compile
[INFO] | +- io.cucumber:cucumber-html:jar:0.2.7:compile
[INFO] | +- io.cucumber:gherkin:jar:5.1.0:compile
[INFO] | +- io.cucumber:tag-expressions:jar:1.1.1:compile
[INFO] | +- io.cucumber:cucumber-expressions:jar:6.2.0:compile
[INFO] | - io.cucumber:datatable:jar:1.1.7:compile
[INFO] | - io.cucumber:datatable-dependencies:jar:1.1.7:compile
[INFO] +- io.cucumber:cucumber-testng:jar:4.2.0:compile
[INFO] | - org.testng:testng:jar:6.14.3:compile
[INFO] | +- com.beust:jcommander:jar:1.72:compile
[INFO] | - org.apache-extras.beanshell:bsh:jar:2.0b6:compile
[INFO] +- io.cucumber:cucumber-guice:jar:4.2.0:test
[INFO] - io.cucumber:cucumber-jvm:pom:4.2.0:compile
Have a look if there is somewhere a dependency to
info.cuke:*
any version
io.cucumber:cucumber-core
version before 3
Does this mean that somewhere in my code, I have an older version of Cucumber trying to do something? If I can't see the error in my pom/dependencies, do you have any suggestions on how it might be fixed?
– L. Ball
Nov 19 at 14:15
@L.Ball Have a look to my updated answer. There might also be a transient dependency to an older cucumber version.
– SubOptimal
Nov 19 at 15:30
thanks - I did already try this, and no reference to info.cukes. All cucumber jars in the tree seem to be version 4.1.0. Puzzled!
– L. Ball
Nov 19 at 15:44
@L.Ball Have a look if you have a dependency to acucumber-core
with version < 3. I updated my answer.
– SubOptimal
Nov 20 at 7:03
@L.Ball Could you please add the whole dependency tree to your question.
– SubOptimal
Nov 20 at 7:06
add a comment |
up vote
3
down vote
up vote
3
down vote
Most probably you have not aligned the import statements (other changes might be needed).
From the CHANGELOG.md
3.0.0
...
[Core] Replace DataTable with io.cucumber.datatable.DataTable (#1248 M.P. Korstanje, Björn Rasmusson, Marit van Dijk)
Based on your exception message your code is looking for cucumber.api.DataTable
edit There might be also a transient dependency from one of you other dependencies to an older cucumber version.
Assume the following dependencies only in your pom.xml
<properties>
<version.cucumber>4.2.0</version.cucumber>
</properties>
<dependencies>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${version.cucumber}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-guice</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jvm</artifactId>
<version>${version.cucumber}</version>
<type>pom</type>
</dependency>
</dependencies>
listing the project dependencies
$ mvn dependency:tree
would produce the following tree
[INFO] +- io.cucumber:cucumber-java:jar:4.2.0:test
[INFO] | - io.cucumber:cucumber-core:jar:4.2.0:compile
[INFO] | +- io.cucumber:cucumber-html:jar:0.2.7:compile
[INFO] | +- io.cucumber:gherkin:jar:5.1.0:compile
[INFO] | +- io.cucumber:tag-expressions:jar:1.1.1:compile
[INFO] | +- io.cucumber:cucumber-expressions:jar:6.2.0:compile
[INFO] | - io.cucumber:datatable:jar:1.1.7:compile
[INFO] | - io.cucumber:datatable-dependencies:jar:1.1.7:compile
[INFO] +- io.cucumber:cucumber-testng:jar:4.2.0:compile
[INFO] | - org.testng:testng:jar:6.14.3:compile
[INFO] | +- com.beust:jcommander:jar:1.72:compile
[INFO] | - org.apache-extras.beanshell:bsh:jar:2.0b6:compile
[INFO] +- io.cucumber:cucumber-guice:jar:4.2.0:test
[INFO] - io.cucumber:cucumber-jvm:pom:4.2.0:compile
Have a look if there is somewhere a dependency to
info.cuke:*
any version
io.cucumber:cucumber-core
version before 3
Most probably you have not aligned the import statements (other changes might be needed).
From the CHANGELOG.md
3.0.0
...
[Core] Replace DataTable with io.cucumber.datatable.DataTable (#1248 M.P. Korstanje, Björn Rasmusson, Marit van Dijk)
Based on your exception message your code is looking for cucumber.api.DataTable
edit There might be also a transient dependency from one of you other dependencies to an older cucumber version.
Assume the following dependencies only in your pom.xml
<properties>
<version.cucumber>4.2.0</version.cucumber>
</properties>
<dependencies>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>${version.cucumber}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-guice</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jvm</artifactId>
<version>${version.cucumber}</version>
<type>pom</type>
</dependency>
</dependencies>
listing the project dependencies
$ mvn dependency:tree
would produce the following tree
[INFO] +- io.cucumber:cucumber-java:jar:4.2.0:test
[INFO] | - io.cucumber:cucumber-core:jar:4.2.0:compile
[INFO] | +- io.cucumber:cucumber-html:jar:0.2.7:compile
[INFO] | +- io.cucumber:gherkin:jar:5.1.0:compile
[INFO] | +- io.cucumber:tag-expressions:jar:1.1.1:compile
[INFO] | +- io.cucumber:cucumber-expressions:jar:6.2.0:compile
[INFO] | - io.cucumber:datatable:jar:1.1.7:compile
[INFO] | - io.cucumber:datatable-dependencies:jar:1.1.7:compile
[INFO] +- io.cucumber:cucumber-testng:jar:4.2.0:compile
[INFO] | - org.testng:testng:jar:6.14.3:compile
[INFO] | +- com.beust:jcommander:jar:1.72:compile
[INFO] | - org.apache-extras.beanshell:bsh:jar:2.0b6:compile
[INFO] +- io.cucumber:cucumber-guice:jar:4.2.0:test
[INFO] - io.cucumber:cucumber-jvm:pom:4.2.0:compile
Have a look if there is somewhere a dependency to
info.cuke:*
any version
io.cucumber:cucumber-core
version before 3
edited Nov 20 at 7:05
answered Nov 19 at 12:17
SubOptimal
16.1k22542
16.1k22542
Does this mean that somewhere in my code, I have an older version of Cucumber trying to do something? If I can't see the error in my pom/dependencies, do you have any suggestions on how it might be fixed?
– L. Ball
Nov 19 at 14:15
@L.Ball Have a look to my updated answer. There might also be a transient dependency to an older cucumber version.
– SubOptimal
Nov 19 at 15:30
thanks - I did already try this, and no reference to info.cukes. All cucumber jars in the tree seem to be version 4.1.0. Puzzled!
– L. Ball
Nov 19 at 15:44
@L.Ball Have a look if you have a dependency to acucumber-core
with version < 3. I updated my answer.
– SubOptimal
Nov 20 at 7:03
@L.Ball Could you please add the whole dependency tree to your question.
– SubOptimal
Nov 20 at 7:06
add a comment |
Does this mean that somewhere in my code, I have an older version of Cucumber trying to do something? If I can't see the error in my pom/dependencies, do you have any suggestions on how it might be fixed?
– L. Ball
Nov 19 at 14:15
@L.Ball Have a look to my updated answer. There might also be a transient dependency to an older cucumber version.
– SubOptimal
Nov 19 at 15:30
thanks - I did already try this, and no reference to info.cukes. All cucumber jars in the tree seem to be version 4.1.0. Puzzled!
– L. Ball
Nov 19 at 15:44
@L.Ball Have a look if you have a dependency to acucumber-core
with version < 3. I updated my answer.
– SubOptimal
Nov 20 at 7:03
@L.Ball Could you please add the whole dependency tree to your question.
– SubOptimal
Nov 20 at 7:06
Does this mean that somewhere in my code, I have an older version of Cucumber trying to do something? If I can't see the error in my pom/dependencies, do you have any suggestions on how it might be fixed?
– L. Ball
Nov 19 at 14:15
Does this mean that somewhere in my code, I have an older version of Cucumber trying to do something? If I can't see the error in my pom/dependencies, do you have any suggestions on how it might be fixed?
– L. Ball
Nov 19 at 14:15
@L.Ball Have a look to my updated answer. There might also be a transient dependency to an older cucumber version.
– SubOptimal
Nov 19 at 15:30
@L.Ball Have a look to my updated answer. There might also be a transient dependency to an older cucumber version.
– SubOptimal
Nov 19 at 15:30
thanks - I did already try this, and no reference to info.cukes. All cucumber jars in the tree seem to be version 4.1.0. Puzzled!
– L. Ball
Nov 19 at 15:44
thanks - I did already try this, and no reference to info.cukes. All cucumber jars in the tree seem to be version 4.1.0. Puzzled!
– L. Ball
Nov 19 at 15:44
@L.Ball Have a look if you have a dependency to a
cucumber-core
with version < 3. I updated my answer.– SubOptimal
Nov 20 at 7:03
@L.Ball Have a look if you have a dependency to a
cucumber-core
with version < 3. I updated my answer.– SubOptimal
Nov 20 at 7:03
@L.Ball Could you please add the whole dependency tree to your question.
– SubOptimal
Nov 20 at 7:06
@L.Ball Could you please add the whole dependency tree to your question.
– SubOptimal
Nov 20 at 7:06
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53374087%2fnoclassdeffounderror-cucumber-api-datatable-when-trying-to-upgrade-to-cucumber%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Could you please comment if your problem has been solved and how. Would be nice to know for other SO visitors with a comparable problem.
– SubOptimal
Nov 22 at 13:24