java - Exception when starting ChromeDriver() on MAC -


team,

cleaning 1 of eclipse projects , can't seem chromedrive() return webdriver.

webdriver driver = new chromedriver();  exception in thread "main" java.lang.noclassdeffounderror: org/apache/commons/exec/executor 

i have latest selenium jar files 2.47.1 httpclient jar 4.5.2 httpcore jar 4.4.4

question:

do know need set system variable point chrome app?

system.setproperty("webdriver.chrome.driver", "/applications/google chrome.app"); 

any appreciated.

the class causing problem

org/apache/commons/exec/executor 

so, make sure in classpath included commons-exec-1.3.jar jar file.

you cand maven central repository


Comments