title: "ChromeDriver/ WebDriver can not be resoved to a type" error on Eclipse
body: <p><a href="https://i.stack.imgur.com/JivNb.png" rel="nofollow noreferrer">openqa.selenium.WebDriver</a><a href="https://i.stack.imgur.com/YuyDQ.png" rel="nofollow noreferrer">openqa.selenium.chrome</a><a href="https://i.stack.imgur.com/rQcWG.png" rel="nofollow noreferrer">openqa.selenium</a><a href="https://i.stack.imgur.com/pspsI.png" rel="nofollow noreferrer">Project Structure</a><a href="https://i.stack.imgur.com/a0az2.png" rel="nofollow noreferrer">Java Build Path-&gt; Jar files</a>Need help! Using Selenium with Java for Chrome Browser on Eclipse.
  It's a frequently asked question. Searched for all the solutions provided, but mine did not get resolved.</p>
  <p>Have latest version:
  Java: openjdk-15_windows-x64_bin
  Eclipse: for Java Developers
  Selenium WebDriver Java client: selenium-java-3.141.59
  Google Chrome version: 86; chromedriver_win32 of the same version.</p>
  <p>Trying to instantiate a new chrome driver:</p>
  <p>Have added all the external jars coming from 'Selenium WebDriver Java client: selenium-java-3.141.59' to my project Java Buildpath -&gt; Libraries -&gt; Add External Jars.</p>
  <p>My code:</p>
  <pre><code>    import org.openqa.selenium.By;  
      import org.openqa.selenium.WebDriver;  
      import org.openqa.selenium.chrome.ChromeDriver;
      public class firstProgram {
      public static void main(String[] args) {  
          
          WebDriver driver;           
          System.setProperty(&quot;webdriver.chrome.driver&quot;, &quot;D:\\ChromeDriver\\chromedriver.exe&quot;);  
          driver=new ChromeDriver();  
       
                
          }  
      }
  </code></pre>
  <p>Errors:
  ChromeDriver can not be resolved to a type
  WebDriver can not be resolved to a type</p>
  <p>After adding the import statements, same error for all the three.
  The import.org.----------  can not be resolved.</p>
  <p>Please let me know what else to be done. I'm stuck, can not proceed.</p>