Firefox browser is not opening with selenium webbrowser code
<p>Need guidance and help in the below one.</p>

<p>When the below code is executed, I am getting error. I am using the latest version of java, eclipse, firefox, and WebDrive jar file.</p>

<pre><code>package firsttest1;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class helloselenium {
    public static void main(String[] args) {
        WebDriver driver;
        driver =new FirefoxDriver();
        String url ="http://www.google.com";
        driver.get(url);
    }
}
</code></pre>

<p><strong>error....</strong></p>

<blockquote>
  <p>Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver">https://github.com/mozilla/geckodriver</a>. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases">https://github.com/mozilla/geckodriver/releases</a> 
      at com.google.common.base.Preconditions.checkState(Preconditions.java:199)
      at     org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:109)
      at org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:38)
      at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:91)
      at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:296)
      at org.openqa.selenium.firefox.FirefoxDriver.createCommandExecutor(FirefoxDriver.java:245)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:220)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:215)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:124)
      at firsttest1.helloselenium.main(helloselenium.java:12)</p>
</blockquote>

<p>Version used:
eclipse : neon version
java : jdk1.8 
fire fox: v48
WebDrive jar file : v 3.0.0 beta2 </p>

<p>guide me in resolving this issue.</p>