top of page
  • Writer's picturekhyati sehgal

No main manifest attribute, in selenium-java-2.42.0.jar

Error Statement

java -jar selenium-java-3.XX.0.jar -help
no main manifest attribute, in selenium-java-2.42.0.jar
 

Rectification of command

java -jar selenium-server-standalone-3.XX.0.jar
Aug 20, 2014 7:44:34 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid server
2014-08-20 19:44:35.907:INFO:osjs.Server:jetty-7.x.y-SNAPSHOT
2014-08-20 19:44:35.952:INFO:osjsh.ContextHandler:started o.s.j.s.ServletContextHandler{/,null}
2014-08-20 19:44:35.960:INFO:osjs.AbstractConnector:Started SocketConnector@0.0.0.0:4444
 
Once this is done follow the below command 
java -jar selenium-server-standalone-3.XX.0.jar -help
 

Root cause Analysis

The issue was in the first statement , I was trying to work with selenium-java-2.42.0.jar is not meant for the purpose which we want to work on. The correct jar is selenium-server-standalone-2.41.0.jar which is jar which is the jar which will start the selenium instance at your local .

So whenever you want to run an instance of selenium always take selenium-server-standalone-XXXX.jar instead of selenium-java-XXXX.jar. This change solved my problem,hope this will help you all.

1 view0 comments

Recent Posts

See All
bottom of page