问题
i am using eclipse as a IDE and Selenium web driver. i am trying to run test in cucumber-JVM. when i am run test it show me "NoClassDefFoundError ". can anyone help me to solve my problem. all relevant jar files are build in to project file.
回答1:
Add cucumber-jvm-deps-1.0.3.jar file into your build path. You can download cucumber-jvm-deps-1.0.3.jar file from cucumber-jvm-deps-1.0.3
回答2:
If the NoClassDefFoundError is coming from either XmlPullParser or dom4j/element u need to install this Eclipse Plugin/Update: Eclipse -> Help -> Install New Software… http://cucumber.github.com/cucumber-eclipse/update-site
来源:https://stackoverflow.com/questions/18513603/how-to-solve-noclassdeffounderror-in-cucumber-test