title: IntelliJ Error: Could not find or load main class cucumber.api.cli.Main
body: <p>In IntelliJ, I am running a cucumber Feature, using Right click "Run Feature" option. </p>
  
  <p>I am getting this error</p>
  
  <blockquote>
    <p>classes/com/***/rest/test/feature1.feature Error: Could not find or
    load main class cucumber.api.cli.Main</p>
    
    <p>Process finished with exit code 1</p>
  </blockquote>
  
  <p>When I check the run configuration I see that </p>
  
  <blockquote>
    <p>cucumber.api.cli.Main (Main class not found) and cucumber keyword is
    in Red.</p>
  </blockquote>
  
  <p>I have installed Cucumber-Java IntelliJ plugin and I have uninstalled and reinstalled the plugin several times in an effort to fix the problem. I also uninstalled IntelliJ idea and re-installed it just in case.</p>
  
  <p>I have JDK 1.8.202, I downgraded to 1.8.171 just to see if that fixes the issue (Since some coworkers had that version working) . that didnt help either. Same test works fine in Eclipse, but I prefer to use IntelliJ since I more used to it. I have already checked other Stack overflow posts but didnt find any solution.</p>