title: WebDriver cannot be resolved to a type
body: <p>Trying to set up Selenium but can't get the code in Eclipse to invoke Browser. I have the following code:</p>
  
  <pre><code>package Basics;
  
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  
  public class Browserinvocation {
  
      public static void main(String[] args) {
          // TODO Auto-generated method stub
  
          WebDriver driver=new ChromeDriver();
  
      }
  
  }
  </code></pre>
  
  <p>I receive the following errors:</p>
  
  <pre><code>Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
      WebDriver cannot be resolved to a type
      ChromeDriver cannot be resolved to a type
  
      at Basics.Browserinvocation.main(Browserinvocation.java:11)
  </code></pre>
  
  <p>There was a similar question on StackOverflow, the solution was that there were 2 Jars outside the "Lib" folder that wasn't added. I was missing those as well, but even after adding those Jars, I'm still receiving the same error</p>
  
  <p>Also, when I hover over "org.openqa.selenium.WebDriver;", I get the following message:</p>
  
  <pre><code>The import org.openqa cannot be resolved
  </code></pre>