Since we will be using the terminal a lot, in this class it makes sense to drag it into your dock. In utilities, there's the application named terminal. So, you open the Finder, we go to the Applications folder and we open the Utilities folder. To verify, if you already have Java, you have to open a terminal application. In fact, Mac OSX either comes with Java pre-installed or it will install it automatically for you. Since we are currently on Mac OS10, we will look at how to install JDK on Mac OSX. Every section in this tutorial has three sub sections one for each operating system. Okay, so, let's get started by installing the Java debug kit. The third one is the Scala IDE for Eclipse, which is the IDE that we are going to use in this class. The second one is SBT, a build tool for Scala, which you will also use to submit your assignment solutions to Coursera. The first one is the JDK, the Java Runtime Environment, which is used to execute Scala programs. As you can see, there are three things that you need to install on your machine in order to prepare for this class. Everything that we show in this video is also explained in text on the Tools Set Up wiki page on the class website. If you're using a different operating system, check the getting started section on the video lectures part of the class website. In this video, we are going to show you how to install the tools required for our class on your machine. You should have some familiarity using the command line. Proficiency with Java or C# is ideal, but experience with other languages such as C/C++, Python, Javascript or Ruby is also sufficient. Recommended background: You should have at least one year programming experience. The course is complemented by a series programming projects as homework assignments. The course is hands on most units introduce short programs that serve as illustrations of important concepts and invite you to play with them, modifying and improving them. You will also develop a solid foundation for reasoning about functional programs, by touching upon proofs of invariants and the tracing of execution symbolically. In this course you will discover the elements of the functional programming style and learn how to apply them usefully in your daily programming tasks, such as modeling business domains or implementing business logic. It provides the core infrastructure for sites such as Twitter, Tumblr and also Coursera. Scala is the implementation language of many important frameworks, including Apache Spark, Kafka, and Akka. It interoperates seamlessly with both Java and Javascript. Scala fuses functional and object-oriented programming in a practical package. This trend is driven by the adoption of Scala as the main programming language for many applications. Page, which will show you how to generate, build, and run a Scalatra application.Functional programming is becoming increasingly widespread in industry. With installation out of the way, head over to the “ first project“ To install sbt, refer to the Installing sbt page.įor example, if it is macOS, you can install it by brew command as follows. In order to create a new project of Scalatra from the template, sbt 0.13.13 or later needs to be installed. It can create a new project from the template repository. Sbt is a build tool for Scala, Java, and more. Once you’re sure you’ve got Java installed, you will need to install the sbt. Or the OpenJDK installation page or AdoptOpenJDK download page. If you don’t yet have Java installed, you can find out how to install it for your system over at Java 7 is no longer supported in Scalatra 2.5. You need Java 8 or above (Oracle’s JDK, OpenJDK, AdoptOpenJDK and various other distributions exist), which will show up as version 1.8. Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_131-b11) The output should look something like this: $ java -version Run java -version and javac -version in a terminal to find if yoursĭoes. Scalatra is web micro-framework written in Scala, so you’ll need to have a It can run on Windows, Mac OS X, Linux, or BSD. Luckily, Scalatra is easy to install, as it has relatively few dependencies. Getting started with a new web framework can be a bit scary.
0 Comments
Leave a Reply. |