title: Installing Apache Spark on linux
body: <p>I am installing Apache Spark on linux. I already have Java, Scala and Spark downloaded and they are all in the Downloads folder inside the Home folder with the path /home/alex/Downloads/X where X=scala, java, spark, literally that's what the folders are called. </p>
  
  <p>I got scala to work but when I try to run spark by typing ./bin/spark-shell it says:</p>
  
  <pre><code>/home/alex/Downloads/spark/bin/saprk-class: line 100: /usr/bin/java/bin/java: Not a directory
  </code></pre>
  
  <p>I have already included the file path by editing the bashrc with sudo gedit ~/.bashrc:</p>
  
  <pre><code># JAVA
  export JAVA_HOME=/home/alex/Downloads/java
  export PATH=$PATH:$JAVA_HOME/bin
  
  # scala
  export SCALA_HOME=/home/alex/Downloads/scala
  export PATH=$PATH:$SCALA_HOME/bin
  
  # spark
  export SPARK_HOME=/home/alex/Downloads/spark
  export PATH=$PATH:$SPARK_HOME/bin
  </code></pre>
  
  <p>When I try to type sbt/sbt package in the spark folder it say no such file or directory is found also. What should I do from here?</p>