Functional Programming Principles in Scala(一)
Getting Started!
In order to work on the programming assignments, you need to have the following tools installed on your machine:
- Oracle JDK, the Java Development Kit, version 1.8. Note some
assignments may work with Java 1.7, but we grade the assignments with
1.8, so we strongly recommend to use Java 1.8. Check you have the right version by typing in the console:
java -version
-
Scala Build Tool (sbt), a build tool for Scala, version 0.13.x, or
newer. -
The Scala IDE for Eclipse, Intellij IDEA or another IDE of your
choice.
Please follow the instructions on this page carefully.
Installing the JDK
Windows
- Download the JDK installer for Windows from the Oracle website
- Run the installer.
- Add the bin directory of the installed JDK to the PATH environment
variable, as described here .
To verify the JDK installation, open the Command Prompt and type java -version
. If you run into any problem, go to the official Oracle documentation
Installing sbt
Follow the instructions for your platform to get it running.
This course requires sbt version >0.13.x . If you have previously installed sbt 0.12.x, you need to uninstall it and install a newer version. sbt 0.13.x can be used for projects and other courses requiring sbt 0.12.x, but not the other way around. If in doubt, you can check your currently installed sbt like this: in an arbitrary directory that is not a programming assignment or otherwise an sbt project, run:
$ sbt about
You should see something like this:
This is sbt 1.1.0
If the sbt command is not found, you need to install sbt. In this case, go to the official instructions for your platform .