title: JUnit/Cucumber- Can @RunWith(Cucumber.class) be simulated prior to JUnit4?
body: <p>I'm currently working on a Java project in which we are using Cucumber to test some features. The team is using an older version of JUnit, so that the @RunWith annotation cannot be used without adding a newer version of JUnit to the build path. Here lies my problem: For some reason, JUnit4 breaks the build on Jenkins. It compiles fine locally, but it seems to break cause build failures when we build on Jenkins.</p>
  
  <p>Is there something similar to the @RunWith(Cucumber.class) annotation that I can make without the need for JUnit4? Currently, this is all I need it for:</p>
  
  <pre><code>import cucumber.api.junit.Cucumber;
  import org.junit.runner.RunWith;
  
  @RunWith(Cucumber.class)
  public class CukeRunner { }
  </code></pre>
  
  <p>So is there a  way to make this compatible with versions of JUnit that don't support @RunWith? Thanks in advance,</p>