title: How to run Karate from java application not from JUnit test
body: <p>I managed to run Karate tests using Junit. But what I want is to run Karate from java application instead of Junit runner.</p>
  
  <p>Currently I'am running from JUnit:</p>
  
  <pre><code>import com.intuit.karate.cucumber.CucumberRunner;
  import com.intuit.karate.cucumber.KarateStats;
  import cucumber.api.CucumberOptions;
  import static org.junit.Assert.assertTrue;
  import org.junit.Test;
  @CucumberOptions(tags = {"~@ignore"})
  public class TestParallel {
  
  @Test
  public void testParallel() {
      KarateStats stats = CucumberRunner.parallel(getClass(), 5, "target/surefire-reports");
      assertTrue("scenarios failed", stats.getFailCount() == 0);
  }
  }
  </code></pre>
  
  <p>I tried calling the Junit class from my application main using the code below:</p>
  
  <pre><code>    JUnitCore junit = new JUnitCore();
      Result result = junit.run(TestParallel.class);
  </code></pre>
  
  <p>But I have this error:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: com/intuit/karate/cucumber/CucumberRunner
  </code></pre>