title: How can I include ChromeDriver in a JAR?
body: <p>I'm writing a web-automation program and so far, it works fine using Selenium's FirefoxDriver. However, I want to make it use Chrome if Firefox is not installed. I downloaded the ChromeDriver, put it inside a folder in my Eclipse project, and ran it. After I added <code>System.setProperty("webdriver.chrome.driver", "Drivers/chromedriver.exe");</code> it worked fine. However, when I try to export it (using Eclipse's standard Export). It crashes, I believe because it can't find the ChromeDriver (I think this because exporting it with FirefoxDriver works fine). </p>
  
  <p>I have tried changing the .JAR to a .ZIP in order to look inside, and I see that the <code>driver</code> folder was stripped away, simply putting <code>chromedriver.exe</code> inside the top-level JAR. I tried changing the property to <code>System.setProperty("webdriver.chrome.driver", "chromedriver.exe");</code> but still crashes.</p>
  
  <p>Does anyone know why the exported JAR is unable to find <code>chromeDriver</code>, despite the fact that I have verified that it is in the JAR?</p>
  
  <p>Thanks,
  Daniel</p>