title: Invalid or corrupt jarfile /usr/local/bin/selenium-server-standalone-2.38.0.jar
body: <p>I am trying to get a grasp of unitTesting and have set out to follow this <a href="http://net.tutsplus.com/tutorials/php/how-to-use-selenium-2-with-phpunit/" rel="nofollow">netTuts tutorial</a>. In the tutorial it gets you to download a javafile from <a href="http://docs.seleniumhq.org/download/" rel="nofollow">here</a>. This file is then moved and then using</p>
  
  <p><code>java -jar /usr/local/bin/selenium-server-standalone-2.38.0.jar</code></p>
  
  <p>the file is meant to run.</p>
  
  <p>My problem is that I get the message</p>
  
  <p><code>Invalid or corrupt jarfile /usr/local/bin/selenium-server-standalone-2.38.0.jar</code></p>
  
  <p>The searches I have made to resolve this issue talk about people creating their own file or something going wrong with the download as the file size should be bigger than what has been downloaded. Mine is 34.6MB which is what I believe to be about correct. I have also checked what Java version I am running (1.6.0_65), (<a href="https://forums.oracle.com/message/10931425" rel="nofollow">here</a> says 1.6+ is fine).</p>
  
  <p>This appears to be a common problem, but I have not been able to find any solutions.</p>