Recently I upgraded to Selenium 3.7.
Code:
import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public static
I think you are missing the .exe extension. Your path should be like this
System.setProperty("webdriver.gecko.driver", "/usr/local/bin/geckodriver.exe");