Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Error : "Could not find or load main class .ie.driver" with selenium

Been searching for an answer and really can't find any plausible reason why this is happening.

java -Dwebdriver.ie.driver=C:\Users\Administrator\selenium\IEDriverServer.exe -jar C:\Users\Administrator\selenium\selenium-server-standalone-3.13.0.jar -role node -hub http://localhost:4444/grid/register/"

returns

Error: Could not find or load main class .ie.driver=C:\Users\Administrator\selenium\IEDriverServer.exe

do I need to install or point to language bindings for selenium?

like image 604
Addison Joseph Avatar asked Dec 16 '25 12:12

Addison Joseph


1 Answers

Solved with quoting all arguments as Andreas suggested.

It looks like it somehow thinks there is a space after -Dwebdriver. Could be an invisible zero-width space. Try typing the command again. Or quote the arguments: java "-Dwebdriver.ie.driver=C:\Users\Administrator\selenium\IEDriverServer.exe" -jar "C:\Users\Administrator\selenium\selenium-server-standalone-3.13.0.jar" -role node -hub "http://localhost:4444/grid/register/" – Andreas

like image 135
Addison Joseph Avatar answered Dec 19 '25 07:12

Addison Joseph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!