-
Notifications
You must be signed in to change notification settings - Fork 8
Scala Installation
luongthevinh edited this page Jan 25, 2016
·
2 revisions
Scala
is a powerful programming language combining functional programming and object-oriented programming. Scala
is known for very high performance and is widely used in building large-scale distributed computing frameworks.
Go here to download a copy of Scala
appropriate for your computer. Unpack / unzip the downloaded compressed file, and move the unpacked / unzipped folder to a location of your choice.
Then you need to add the path to the folder containing your Scala
executable files to your system PATH
so that your computer knows where to find them:
-
Mac:
- locate the
.bash_profile
file in your home folder - open the
.bash_profile
file in a text editor - add the following line:
export PATH="<path to your Scala folder>/bin:PATH"
- save the
.bash_profile
file and exit the text editor - launch a new command-line terminal window and verify by running command:
which scala
, which should return the path to thescala
executable file.
- locate the
-
Windows:
- Go to Control Panel > System > Advanced System Settings > Environment Variables, look under the System Variable section for the variable
Path
, and append the following path to the existing text:;<path to your Scala folder>/bin
; - launch a new command-line terminal window and verify by running command:
where scala
, which should return the path to thescala.bat
executable file.
- Go to Control Panel > System > Advanced System Settings > Environment Variables, look under the System Variable section for the variable