Forum Discussion

vikram_u_k's avatar
vikram_u_k
Contributor
9 years ago

BDD Cucumber Dependencies

Hi Support,

  With the Example Project zip file for BDD at SmartBear Cucumber Zip i have been getting this error.

 

Exception in thread "main" java.lang.NoClassDefFoundError: gherkin/util/FixJava
"C:\Program Files\Java\jdk1.8.0_91\bin\java" -Dorg.jetbrains.run.directory=D:\SquishWorkspace\TestComplete\BDD\Cucumber-Sample-Project -Didea.launcher.port=7532 "-Didea.launcher.bin.path=D:\ProgApps\IntelliJ IDEA\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Testing started at 11:19 AM ...
at cucumber.runtime.RuntimeOptions.<clinit>(RuntimeOptions.java:29)

 

The FixJava error is supposed to be a mismatch of the Jar files for Cucumber. Has anyone seen this issue?.

 

 

  • Hi Support,

       Solved the Issue as it was related to Maven Connectivity.

     

    There was one difference in the documentation about the package information.

    In the Tutorial:

    import com.smartbear.cucumber.TestComplete;

    Maps into the TestComplete.jar import com.smartbear.cucumber and not as com.smartbear.testcomplete.cucumber;

  • Hi Support,

       Solved the Issue as it was related to Maven Connectivity.

     

    There was one difference in the documentation about the package information.

    In the Tutorial:

    import com.smartbear.cucumber.TestComplete;

    Maps into the TestComplete.jar import com.smartbear.cucumber and not as com.smartbear.testcomplete.cucumber;