Invalid or corrupt jar file when trying to start selenium server from intelliJ Invalid or corrupt jar file when trying to start selenium server from intelliJ selenium selenium

Invalid or corrupt jar file when trying to start selenium server from intelliJ


I found a workaround, which may or may not be acceptable. You can force webdriver-manager to use an older version of the selenium-standalone package. This avoids whatever the problem is with 4.0.0-alpha-1.

$ webdriver-manager clean$ webdriver-manager update --standalone --versions.standalone=3.8.0$ webdriver-manager start --versions.standalone=3.8.0…[14:19:55] I/start - seleniumProcess.pid: 6386314:19:55.379 INFO - Selenium build info: version: '3.8.0', revision: '924c4067df'14:19:55.380 INFO - Launching a standalone Selenium Server2019-04-24 14:19:55.483:INFO::main: Logging initialized @390ms to org.seleniumhq.jetty9.util.log.StdErrLog


There is an open defect in the webdriver-manager project for this issue: https://github.com/angular/webdriver-manager/issues/370

As a temporary workaround you can use the directConnect attribute in your protractor config.


There is issue with 4.0.0-alpha-1 , after deleting files you can install some older versions that will work. If you will just update wevdriver manager by using webdriver-manager update then it will not work for you but you need to use something like " webdriver-manager update --standalone --versions.standalone="some older version"