You can get the binaries from here. It requires JDK 1.5 or higher. The latest version as of now is 2.7.5. The sdk comes with scalac (scala compiler, just like javac), scala (a REPL interactive session) and host of other executables. We will be using these two mostly.
Once installed, typing scala will lead you to a REPL (Read-Eval-Print-Loop) interactive session:
Welcome to Scala version 2.7.5.final (Java HotSpot(TM) Client VM, Java 1.5.0_19).
Type in expressions to have them evaluated.
Type :help for more information.
scala>
You can type your short scripts or code snippets here. But, as the code size increases, we use a programming editor and save the file and use scalac to compile to program to Java bytecodes, just as we do in Java.
No comments:
Post a Comment