Exception, no main manifest attribute, Selenium, Testing

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

Error Statement


F:\Selenium>java -jar selenium-java-2.42.0.jar -help
no main manifest attribute, in selenium-java-2.42.0.jar


Rectification of command


F:\Selenium><strong>java -jar selenium-server-standalone-2.41.0.jar</strong>
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

</pre>
<pre>Once this is done follow the below command
F:\Selenium>java -jar selenium-server-standalone-2.41.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.

Advertisements

3 thoughts on “No main manifest attribute, in selenium-java-2.42.0.jar”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s