Install Scala and SBT
Install Scala and Simple Build Tool (SBT) as customary for your Linux distribution.
- Debian: install instructions for Scala (Debian has old version packaged), and SBT
sudo pacman -S sbt scala
Set up a barebone SBT project
Create an empty project (arbitrarily called
project1) with the correct dependency (Wisp). Wisp is Scala Plotting.
build.sbt specifies settings for SBT. Create a new project directory (here,
~/project1). Then create
lazy val root = (project in file(".")). settings( name := "project1", version := "1.0", scalaVersion := "2.11.7", libraryDependencies += "com.quantifind" %% "wisp" % "0.0.1" )
Start up a Scala REPL (interactive console) and be patient while SBT downloads libraries for Scala and Wisp. SBT will eventually drop you into a Scala REPL with the classpath containing all dependencies:
$ cd ~/project1 $ sbt console ... scala> import com.quantifind.charts.Highcharts._
But it does not seem to work. Jetty serves up a 404 page. The folder served from is empty (does not contain the index-* file). But we can download Wisp sources and start SBL for that project.