![scala for mac os scala for mac os](https://intellipaat.com/wp-content/uploads/2015/11/scala-installation8.png)
Let us now see how to write and execute a program in the shell.
SCALA FOR MAC OS CODE
Scala code runner version 2.11.6 - Copyright 2002-2013, LAMP/EPFL We can check Scala version using below command. This is the scala shell in which we can type the programs and see the output in the shell itself. Welcome to Scala version 2.11.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_3 Open the command prompt and navigate to the bin directory of the installed scala by typing cd command as shown below.Ĭ:\Program Files (x86)\scala\bin>scala.bat.Scala installer will set the Path environment variable too, so that you can run it from anywhere. The Setup Wizard appears, click on Next and complete the installation process. msi extension.ĭouble Click or Open scala-2.11.6.msi file and select Run. The Scala installer file will be downloaded with. Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode, sharing) Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Verify the JDK installation on your windows machine by typing the following commands in the command prompt.This is the Scala REPL shell in which we can type programs and see the outcome right in the shell. Type in expressions to have them evaluated. Welcome to Scala version 2.11.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_20). Picked up _JAVA_OPTIONS: eSystemAAFontSettings=on -Dswing.aatext=true faultlaf=. Now enter the scala shell as shown bin]$.
![scala for mac os scala for mac os](https://cdn.shopify.com/s/files/1/2334/9687/products/60036_IVORY_A-2_800x.jpg)
Just go to the bin Downloads]$ cd scala-2.11.6]$cd bin Now we are in the downloads directory where Scala binaries are present. Unzip the scala-2.11.6.tgz file using the following command as shown below.Īfter unzipping, change the path to point to the directory using cd command as shown below.įor instance my directory is Downloads in which Scala binaries are unzipped. As of writing this post Scala version is 2.11.6, so you should be getting downloaded file as scala-2.11.6.tgz. Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Open the shell/terminal and type java -version and javac -version.