title: Building Apache Spark using SBT: Invalid or corrupt jarfile
body: <p>I'm trying to install Spark on my local machine. I have been following <a href="http://blog.prabeeshk.com/blog/2014/10/31/install-apache-spark-on-ubuntu-14-dot-04/" rel="nofollow noreferrer">this</a> guide. I have installed <code>JDK-7</code> (also have <code>JDK-8</code>) and <code>Scala 2.11.7</code>. A problem occurs when I try to use <code>sbt</code> to build <code>Spark 1.4.1</code>. I get the following exception.</p>
  
  <pre><code>NOTE: The sbt/sbt script has been relocated to build/sbt.
        Please update references to point to the new location.
  
        Invoking 'build/sbt assembly' now ...
  
  Attempting to fetch sbt
  Launching sbt from build/sbt-launch-0.13.7.jar
  Error: Invalid or corrupt jarfile build/sbt-launch-0.13.7.jar
  </code></pre>
  
  <p>I have searched for a solution to this problem. I have found a nice guide <a href="https://stackoverflow.com/a/31597283/2771315">https://stackoverflow.com/a/31597283/2771315</a> which uses a pre-built version. Other than using the pre-built version, is there a way to install <code>Spark</code> using <code>sbt</code>? Further, is there a reason as to why the <code>Invalid or corrupt jarfile</code> error occurs?</p>