Home » Scala » Scala Programming

Scala Programming

How To set up Scala in Eclipse and windows OS :: 

1 : Download and Install jdk8 from Oracle download link .

2 : Right-click on ‘My Computer’ and select ‘Properties’ ,then select Advance system settings.
3 : Click on the ‘Environment variables’ button under the ‘Advanced’ tab.you can edit  path by appending     ;C:\Program Files\Java\jdk1.8.0_181\bin”

4 : Launch eclipse.

5  : Go to Help -> Eclipse Market Place and click on it.

6 : In the  search box type “scala” and click on search symbol.

7 : Select “Scala IDE 4.7x” and click on install.

8 : Select required plugins and confirm and install

9 : Scala Installation is successful now and you need to restart eclipse for it to reflect.

 

First Hello World Program Using Scala :: 

1 : Launch Eclipse .

2 : Click on File -> New -> Scala Project -> Give a Project Name -> Finish

 

3 : Click on src ,create Scala Object “HelloWorld ” and save it

4 : Right Click on the File “HelloWorld.scala” and run as Scala Application

Output ::


Leave a comment

Your email address will not be published. Required fields are marked *

16 − 13 =