Command Prompt: Error Unable to access jarfile selenium-server-standalone-3.141.59.jar

Viewed 1732

I'm trying to run from Command Prompt the selenium server but this error shows up when I write java

Command:

java -jar selenium-server-standalone-3.141.59.jar

Error:

Error Unable to access jarfile selenium-server-standalone-3.141.59.jar
2 Answers

To start the selenium-server-standalone-3.141.59.jar from the Command Prompt you can use the following command:

java -jar selenium-server-standalone-3.141.59.jar

Console Output:

$>java -jar selenium-server-standalone-3.141.59.jar
00:26:20.250 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
00:26:20.750 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a standalone Selenium Server on port 4444
2020-12-13 00:26:21.093:INFO::main: Logging initialized @2998ms to org.seleniumhq.jetty9.util.log.StdErrLog
00:26:22.703 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet
00:26:25.993 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444

Try giving the absolute path to the jar file. E.g. C:\Directory-where-the-file-is\selenium-server-standalone-version.jar

Related