Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 574
lbrown Avatar asked Jun 06 '12 19:06

lbrown


2 Answers

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. :)

like image 119
A.J Avatar answered Oct 01 '22 13:10

A.J


1.goto root mode 2. install $apt install mlocate 3. locate your jar file 4. check the correct jar file name and again try to open it with specific command 5 java -jar ./selenium-server-standalone-2.14.0.jar

like image 33
user13816481 Avatar answered Oct 01 '22 13:10

user13816481