title: Selenium Java - java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property
body: <p>My FireFox Version 49.0.1
  Selenium Version: Selenium-java-3.0.0-beta3
  Java: 8.0.1010.13
  I have replaced all the existing Selenium Jar Files with the new files. Added the gecko.Driver to my code still I am seeing this message:</p>
  
  <p>Error Message:
  java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; </p>
  
  <p>My Code:</p>
  
  <pre><code>import java.util.concurrent.TimeUnit;
  import org.junit.After;
  import org.junit.Before;
  import org.junit.Test;
  import org.openqa.selenium.By;
  import org.openqa.selenium.Keys;
  import org.openqa.selenium.JavascriptExecutor;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  
  public class AbstractPage {
  WebDriver Driver =new FirefoxDriver();
  
  @Before
  public void Homescreen() throws InterruptedException
  {
      System.getProperty("Webdriver.gecko.driver", "C:/geckodriver.exe");
      System.setProperty("Webdriver.firefox.bin", "C:/Program Files (x86)/Mozilla Firefox/firefox.exe");      
      Driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
      Driver.get("URL");
      Driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
  }
  
  @After
  public void TestComplete()  {
      Driver.close();
  }
  
  @Test
  public void Projects()  {
      Driver.findElement(By.id("login-form-username")).sendKeys("Login");
      Driver.findElement(By.id("login-form-password")).sendKeys("Password");
      Driver.findElement(By.id("quickSearchInput")).sendKeys("ID");
  
          }
  </code></pre>
  
  <p>}</p>