Category : Scala | Sub Category : Scala Programs | By Prasad Bonam Last updated: 2020-10-12 02:25:44 Viewed : 934
Since the Scala is a lot similar to other widely used languages syntactically, it is easier to code and learn in Scala. Programs can be written in Scala in any of the widely used text editors like Notepad++, gedit etc. or on any of the text-editors. After writing the program, save the file with the extension .sc or .scala.
For
Windows & Linux:
Before
installing the Scala on Windows or Linux, you must have Java Development Kit(JDK) 1.8 or greater installed
on your system. Because Scala always runs on Java 1.8 or
above.
There are two main ways
people prefer to work in Scala:
·
Using an IDE.
· Using the command line.
Installation
Download Scala IDE :
Get Scala is either using Scala through sbt, the Scala build tool, or to use Scala through an IDE.
Down load URL => https://www.scala-lang.org/download/
To check, open the terminal and type:
java
-version
(Make sure you have
version 1.8 or 11.)
(If you don`t have it installed, download Java from Oracle Java 8, Oracle Java 11, or AdoptOpenJDK 8/11. Refer JDK Compatibility for Scala/Java compatibility detail.
Then, install Scala: https://www.scala-lang.org/download/2.11.0.html
Windows : scala-SDK-4.7.0-vfinal-2.12-win32.win32.x86_64
Click on eclipse: