Today’s course on getting started with Scala will require a bit of setup on your part. Having everything ready to go well before you show up will ensure that you will get the maximum value from our course.
Make sure to have a recent JDK installed on your machine. We tested the sample project with Java 8, but at least Java 7 is recommended. You’ll need to tell Intellij where this is installed.
We’re using the Intellij IDEA IDE to compile and run our test project. If you aren’t an owner you can download the excellent Community Edition for free.
You’ll need to install the Intellij IDEA Scala Plugin as well. Fortunately you can install plugins from right inside Intellij IDEA without having to exit the program.
Make sure that Intellij has been configured with your system’s JDK installation. Try creating a new Java project to verify that it knows where your SDK is located. This will ensure that you will be able to open our Scala project, which does require a JDK to be configured.
The final installable is our sample project, a 309 megabyte tar bzip archive that includes a REST API project build and managed by SBT. SBT, the Simple Build Tool, is the default command line build tool for Scala projects. Intellij files are also included so you can open the project and edit it from Intellij while building and running the server from SBT.
You can download the project at http://www.bks2.com/scala-tutorial.tar.bz2 . After extracting, ensure the project is ready by going into its directory and executing ./sbt compile from the command line. If it all works, your local project will be built and ready for use at the tutorial meetup. If there is a problem, please post it on the event page so that we can help you get it working by the meetup.
-
If you are using OS X you can double-click on the file to extract it.
-
If you are on Windows, see these excellent instructions from the Haskell site