title: InitializationError while running Cucumber JUnit Tests
body: <pre><code>package cucumber;
  import org.junit.runner.RunWith;
  import cucumber.api.CucumberOptions;
  import cucumber.api.junit.Cucumber;
  
  @RunWith(Cucumber.class)
  @CucumberOptions(
          format={"pretty"},
          features= "src/features/"
          )
  public class cucumberRunner {
  
  }
  </code></pre>
  
  <p>Using:</p>
  
  <ul>
  <li>cucumber-core-1.2.4 </li>
  <li>cucumber-java-1.2.4 </li>
  <li>cucumber-junit-1.2.4</li>
  <li>junit-4.12 </li>
  <li>Eclipse Mars.1</li>
  <li>java 8</li>
  </ul>
  
  <p>Error Trace:</p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError: org/dom4j/Element
          at java.lang.Class.getDeclaredMethods0(Native Method)
          at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
          at java.lang.Class.privateGetPublicMethods(Unknown Source)
          at java.lang.Class.getMethods(Unknown Source)
          at cucumber.runtime.java.MethodScanner.scan(MethodScanner.java:40)
          at cucumber.runtime.java.JavaBackend.loadGlue(JavaBackend.java:86)
          at cucumber.runtime.Runtime.(Runtime.java:91)
          at cucumber.runtime.Runtime.(Runtime.java:69)
          at cucumber.runtime.Runtime.(Runtime.java:65)
          at cucumber.api.junit.Cucumber.createRuntime(Cucumber.java:78)
          at cucumber.api.junit.Cucumber.(Cucumber.java:58)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
    Source)
          at java.lang.reflect.Constructor.newInstance(Unknown Source)
          at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
          at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
          at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
          at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
          at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
          at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createUnfilteredTest(JUnit4TestLoader.java:84)
          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:70)
          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:43)
          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)
        Caused by: java.lang.ClassNotFoundException: org.dom4j.Element
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          ... 28 more</p>
  </blockquote>
  
  <p>What could be the problem?</p>