Setup SBT in Mac OS X

Simple Build Tool (SBT) is a building tool for Scala with a Maven feel into it.

First download the latest sbt-launch.jar, put the jar in the /usr/local/bin dir:

$sudo curl http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/CURRENT_VERSION/sbt-launch.jar --O sbt-launch-CURRENT_VERSION.jar
$sudo cp sbt-launch-CURRENT_VERSION.jar /usr/local/bin

Final step is to create file with the command to load up the jar:

$sudo mkdir /usr/local/bin/sbt
$sudo chmod +x /usr/local/bin/sbt 
$sudo vim /usr/local/bin/sbt

Including the following command:

java -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512m -Xmx512M -Xss2M -jar `dirname $0`/sbt-launch-CURRENT_VERSION.jar "$@"
Advertisements

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