title: Cucumber java - Type mismatch: cannot convert from Class<Cucumber> to Class<? extends Runner> error in test runner
body: <p>i am trying to setup cucumber framework using java to run my tests but i am getting type mismatch error in Test Runner.</p>
  
  <pre><code>package cucumbertest;
  
  import org.junit.runner.RunWith;
  import cucumber.api.CucumberOptions;
  import cucumber.api.junit.Cucumber;
  
  @RunWith(Cucumber.class)
  @CucumberOptions(
      features = "Feature", 
      glue={"stepDefinition"}
  )
  
  public class TestRunner {
  }
  </code></pre>
  
  <p>This is my code</p>