title: Exception in thread "main" java.lang.IllegalStateException: The driver executable must exist error using Selenium ChromeDriver and Java
body: <p>I'm facing <em>java.lang.IllegalStateException</em> executing my code.</p>
  <p>Code trials:</p>
  <pre><code>import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  
  public class seleniumintroduction {
  
      public static void main(String[] args) {
          System.setProperty(&quot;webdriver.chrome.driver&quot;,&quot;C:\\Users\\ATIF\\OneDrive\\Desktop\\Selenium Course\\chromedriver_win32.exe&quot;);
          WebDriver driver=new ChromeDriver();
      }
   }
  </code></pre>
  <p>Error I'm seeing:</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.IllegalStateException: The driver executable must exist: C:\Users\ATIF\OneDrive\Desktop\Selenium Course\chromedriver_win32.exe
  </code></pre>