Cannot open Selenium Jar file from CMD. Path or ClassPath issue?

lbrown picture lbrown · Jun 6, 2012 · Viewed 20.9k times · Source

I'm trying to launch:

java -jar selenium-server-standalone-2.14.0.jar -role hub

from my Command Prompt but output was as below:

C:\Program Files (x86)>java -jar selenium-server-standalone-2.14.0.jar -role hub

Unable to access jarfile selenium-server-standalone-2.14.0.jar

C:\Program Files (x86) is where the jar file is located.

I've put C:\Program Files (x86) in my PATH and CLASSPATH and it still won't work.

Answer

A.J picture A.J · Jun 7, 2012

Your filename must be wrong. Check whether you have a file named -selenium-server-standalone-2.14.0.jar. Chances are you won't be. :)