To do the homework and projects for this class, you’ll need Scala and some course-specific software. There are few options for setting this up.
If your computer runs Windows, you need to use a virtual machine that we’ve built for the course.
Download and install VirtualBox
Download cmpsci220.ova (1.51 GB)
Double-click on the cmpsci220.ova
file you downloaded above (or, select
Import Appliance from the File menu and select the file). When you do,
VirtualBox will start and display a prompt called Appliance Settings.
Do not change any settings. Just click the Import button. When importing
completes, the virtual machine will appear in VirtualBox, as shown below:
Select the CS220 virtual machine and click the Start button. If the machine starts successfully, you will see the desktop shown below:
To test that everything is working correctly, start Google Chrome within the virtual machine and ensure you can browse the Web. You’ll find a link to Chrome within the start menu in the bottom-left corner:
For the curious, this virtual machine is running Lubuntu Linux 14.04 (32-bit).
We recommend using the virtual machine above. But, if you have trouble running a virtual machine, you can run Scala without a VM by following these directions:
If you already have Java installed, you need to ensure that it is Java 8 or higher.
Install SBT
Install Cygwin.
Verify that everything installed by typing sbt
to start SBT from the
Cygwin terminal.
Install Homebrew (follow the directions on the website).
Install Java from the Terminal:
brew cask install java
Install SBT from the Terminal:
brew install sbt
To verify that everything installed, type sbt
to start SBT.
Install Java 8:
add-apt-repository -y ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
Install SBT:
wget http://dl.bintray.com/sbt/debian/sbt-0.13.9.deb
dpkg -i sbt-0.13.9.deb
rm sbt-0.13.9.deb
apt-get -f -y install
To verify that everything installed, type sbt
to start SBT.