Scala and SBT set up for the command line on OSX

  1. Install the Java SE SDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html (you can install multiple versions – 1.7, 1.8 …)
  2. Get Homebrew from http://brew.sh/ if you haven’t already and brew update & brew install sbt
  3. For vim install the vim-scala plugin from https://github.com/derekwyatt/vim-scala
  4. Create the obligatory Hello X App.
    mkdir HelloSbt & cd HelloSbt & vi Hello.scala
    Add:
  5. Create a build file.
    vi build.sbt
    Add:
  6. Run sbt from the command line  then run to execute. This will install the latest version of sbt and the version of scala specified in the build file.
  7. exit to leave the sbt console

Leave a Reply