Welcome to the world of Scala Commands IDE tutorials used for spark developers. In these Tutorials, one can explore how to install and set up scala application in IDE(Eclipse). Learn More advanced Tutorials on How to run scala application in IDE by taking exampleS from India’s Leading Apache spark training institute which Provides advanced Apache spark course for those tech enthusiasts who wanted to explore the technology from scratch to advanced level like a Pro.
We Prwatech the Pioneers of Apache Spark training offering advanced certification course and Installation of Scala Programming Language to those who are keen to explore the technology under the World-class Training Environment.
The steps below still work if your organization or course specifically requires the Eclipse based Scala IDE, and the Scala language concepts they demonstrate remain accurate regardless of which IDE you end up using.
Make sure Java 8 is installed on your system before you begin.

Note:- make sure in your system Java 8 be install
Go to the downloaded file and open Eclipse from it.


Once Scala IDE is open, go to the File menu, select New, then Scala Project. Give the project a name and select Finish.


Create a new Scala Object using File -> New -> Scala Object :

Give your Scala application a name, then select Finish to create the file.

Add the following code in HelloWorld.scala
object HelloWorld {
def main(args: Array[String]): Unit = {
println(“Hello, world!”)
}
}

Click on Run button or Run menu to run this as a Scala application
Right Click on that & Run As →Scala Application

NOTE: Set the Run configuration if needed.

The four programs below show additional Scala examples run the same way, written, saved, then executed as a Scala Application from inside the IDE.



Program 3

Program 4

Naming the object differently from the file. A Scala object meant to be run directly, with a main method, should match its file name, the same expectation Java has for its public classes.
That covers running a Scala application in an IDE, both the classic Eclipse based approach and what to reach for today. To go further, explore Prwatech’s Apache Spark training program, which includes placement assistance.