title: Why am I getting an error on System.setProperty(“webdriver.chrome.driver”, “C:\\Users\\cchadwell\\Desktop\\chromedriver.exe”);
body: <p>I am trying to learn selenium with Java for work and I keep getting an error on my setProperty method.</p>
  <pre><code>package src;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  import org.openqa.selenium.WebElement;
  
  
  public class HelloWorld {
      public static void main(String[] args){
          System.out.println(&quot;Hello World&quot;);
          System.setProperty(“webdriver.chrome.driver”, error---&gt;“C:\\Users\\cchadwell\\Desktop\\chromedriver.exe”); &lt;---error right here
          WebDriver driver = new ChromeDriver();
          driver.get(&quot;https://www.google.com/&quot;);
          driver.quit();
      }
  }
  </code></pre>
  <p>I've looked in other places an compared my code but saw no difference.</p>
  <p>Here is the error that is produced...</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.IllegalStateException: iver executable must be set by the webdriver.chrome.driver sr more information, see https://github.com/SeleniumHQ/selenier. The latest version can be downloaded from http://chromedleapis.com/index.html
  
  </code></pre>
  <p>It's also pointing to some syntax errors that I am am having a hard time spotting at that line I pointed out in the code example above.</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.Error: Unresolved compilation problems:
          Syntax error on token &quot;Invalid Character&quot;, delete this 
  token
          Syntax error on tokens, delete these tokens
          chromedriver cannot be resolved to a variable
          Syntax error on token &quot;Invalid Character&quot;, delete this 
  token
  </code></pre>
  <p>Help would be appreciated please!</p>