title: Not Able to open Chrome browser in Selenium
body: <p>Not Able to open Chrome browser in Selenium.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>package toolsqa;
  
  import org.openqa.selenium.WebDriver;     
  import org.openqa.selenium.chrome.ChromeDriver;
  
  public class TestChrome {
  
      public static void main(String[] args) {     
          System.setProperty("webdriver.chrome.driver","C:\\Users\\MR049860\\Documents\\Selenium\\chromedriver_win32\\chromedriver.exe");    
          WebDriver driver=new ChromeDriver();    
          driver.get("http://www.facebook.com");     
          driver.manage().window().maximize();     
      }
  
  }
  </code></pre>
  
  <p>I'm getting the following Exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
      at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:124)
      at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:32)
      at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:137)
      at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:339)
      at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:88)
      at org.openqa.selenium.chrome.ChromeDriver.&lt;init&gt;(ChromeDriver.java:123)
      at toolsqa.TestChrome.main(TestChrome.java:14)
  </code></pre>