Go simple and create a small sbt project.
The first step is to create a project
For your purposes, you do not need a complicated assembly. So just create two files:
./build.sbt
name := "name your project" version := "0.1" scalaVersion := "2.10.2"
./project/build.properties
sbt.version=0.12.4
Just go to the project root folder and call sbt
Second step - add dependencies
Open the ./build.sbt file and add:
libraryDependency ++= Seq( "org.scalatra" %% "scalatra" % "2.2.1", "org.scalatra" %% "scalatra-scalate" % "2.2.1", "org.scalatra" %% "scalatra-specs2" % "2.2.1" % "test", "org.json4s" %% "json4s-native % "3.2.4", "net.java.dev.jna" & "jna" & "3.5.2" )
Step Three - Launch the Console
Remember to restart sbt with the reload task, and then call the console or console-quick task. That should work.
But there are simpler ways to do this:
1) Use gitter8 - Scalatra gitter8 project
2) Get a little familiarity with the dependencies of Scalatra sbt
source share