title: Exception in thread "main" java.lang.IllegalStateException: in selenium
body: <p>following is the code: </p>
  
  <pre><code>import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  
  import java.util.concurrent.TimeUnit;
  import org.openqa.selenium.By;
  
  public class Browser {
  
  public static void main(String args[]){
  
      WebDriver driver= new ChromeDriver();
      driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
  
      driver.get("https://q-apis-two.iot-build.qa.covapp.io/#/dashboard");
      driver.manage().window().maximize();
  
      driver.findElement(By.id("user")).sendKeys("Q-APIS-TWO_ADMIN");
      driver.findElement(By.id("password")).sendKeys("Covisint111");
  
      driver.manage().timeouts().implicitlyWait(60,TimeUnit.SECONDS);
      driver.findElement(By.className("btn btn-lg btn-primary btn-block")).click();
  
  
      driver.close();
  }
  }
  </code></pre>
  
  <p>It throws the following error:  Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see <a href="https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver" rel="nofollow noreferrer">https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver</a>. The latest version can be downloaded from <a href="http://chromedriver.storage.googleapis.com/index.html" rel="nofollow noreferrer">http://chromedriver.storage.googleapis.com/index.html</a></p>
  
  <p>I am new to selenium kindly guide me please</p>