java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see . The latest version can be downloaded from


Samebug tips

Check if there is no nexus running. If not, delete sonatype-work/nexus/nexus.lock .


1 year ago

Solutions on the web

Solution icon of web
The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see . The latest version can be downloaded from

Solution icon of web
via seleniumeasy.com by Unknown author, 6 months ago
The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see . The latest version can be downloaded from

Solution icon of web
via seleniumeasy.com by Unknown author, 1 year ago
The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see . The latest version can be downloaded from

Solution icon of stackoverflow
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 [github gecko driver link] The latest version can be downloaded from [samelink as above]/releases

Solution icon of web
via nabble.com by Unknown author, 1 year ago
The path to the driver executable must be set by the phantomjs.binary.path capability/system property/PATH variable; for more information, see . The latest version can be downloaded from

Solution icon of web
via seleniumeasy.com by Unknown author, 1 year ago
The path to the driver executable must be set by the phantomjs.binary.path capability/system property/PATH variable; for more information, see . The latest version can be downloaded from

Solution icon of github
via GitHub by DieMaske
, 1 month ago
The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases

Solution icon of github
via GitHub by janeshdev
, 9 months ago
The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases

Solution icon of googlegroups
via Google Groups by Harish Dhage, 9 months ago
The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases

Solution icon of googlegroups
via Google Groups by Koda, 1 week ago
The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases

Stack trace

java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see 
. The latest version can be downloaded from
	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$000(GeckoDriverService.java:37)
	at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:95)
	at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:296)
	at org.openqa.selenium.firefox.FirefoxDriver.createCommandExecutor(FirefoxDriver.java:277)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:247)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:242)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:238)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:127)
	at FireFox.main(FireFox.java:9)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 11 months ago
Once, 1 month ago
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
85 more bugmates