title: cucumber.runtime.CucumberException: Couldn't load plugin class: com.cucumber.listener.ExtentCucumberFormatter
body: <p>I am running the script using Cucumber in BDD Framework and I am using Extent Reports plugin to create the execution report.</p>
  
  <p>I've created the test runner class as below:</p>
  
  <pre><code>import java.io.File;
  
  import org.junit.runner.RunWith;
  import org.testng.annotations.AfterClass;
  
  import com.vimalselvam.cucumber.listener.Reporter;
  
  import cucumber.api.CucumberOptions;
  import cucumber.api.junit.Cucumber;
  
  @RunWith(Cucumber.class)
  @CucumberOptions(
          features = "C:\\Users\\User\\Desktop\\Cucumber - BDD\\CucumberPOM\\src\\main\\java\\com\\qa\\features\\DemoSite.feature"//path of the feature files
          ,glue = {"com/qa/stepDefinitions"} //path of the step definition files
          ,plugin = {"com.cucumber.listener.ExtentCucumberFormatter:target/html/ExtentReport.html"}
      //  ,plugin = {"pretty","html:test-output","json:json_output/cucumber.json","junit:junit_output/cucumber.xml"} //to generate diff types of reporting
          ,monochrome =true //display the console output in a proper readable format
          ,strict=true //it will check if any step is not defined in step definition file
          ,dryRun = false  //to check the mapping is proper btw feature file and step defn file
          //,tags = {"@FuntionalTest" , "~@SmokeTest" , "~@End2EndTest"}
          )
  
  public class TestRunner {
  
      @AfterClass
      public static void writeExtentReport() {
          Reporter.loadXMLConfig(new File("config/extent-config.xml"));
      }  
  
  }
  </code></pre>
  
  <p>I have included the below dependency for the Extent report in the POM.xml file:</p>
  
  <pre><code>&lt;!-- https://mvnrepository.com/artifact/com.aventstack/extentreports --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.aventstack&lt;/groupId&gt;
      &lt;artifactId&gt;extentreports&lt;/artifactId&gt;
      &lt;version&gt;4.0.9&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/com.vimalselvam/cucumber-extentsreport --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.vimalselvam&lt;/groupId&gt;
      &lt;artifactId&gt;cucumber-extentsreport&lt;/artifactId&gt;
      &lt;version&gt;3.1.1&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;com.aventstack&lt;/groupId&gt;
  &lt;artifactId&gt;extentreports-cucumber4-adapter&lt;/artifactId&gt;
  &lt;version&gt;1.0.7&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>when I execute the above runner class im getting error - cucumber.runtime.CucumberException: Couldn't load plugin class: com.cucumber.listener.ExtentCucumberFormatter</p>