"Hello World" with Scala IDE

Updated: Oct 25, 2019

Main menu: Spark Scala Tutorial

In this Apache Spark Scala tutorial you will learn how to create,

  • "Hello World" Scala application with Eclipse Scala IDE.

  • Scala application, project, package, objects, run configuration and debug the application.

Motive is to get you guys familiar with Scala IDE.


I assume that you have already installed Eclipse Scala IDE, if not please refer my previous post for installation (Windows | Mac users).

Now, open Eclipse Scala IDE.

1. Create a new Scala project "hellooWorld"

  • Go to File → New → Project and enter hellooWorld in project name field and click finish.


2. Create a new Scala Package "hellooWorld"

  • Right click on the hellooWorld project in the Package Explorer panel → NewPackage and enter name hellooWorld and finish.


3. Create a Scala object "hello":

  • Expand the hellooWorld project tree and right click on the hellooWorld package → NewScala Object → enter hello in the Object name field and press finish.


4. Write the program to print Hello World message.

package hellooWorld

object hello {

def main (args: Array[String]) {

println("Hello World")




5. Create a Run configuration for the Scala application:

  • Right click on hello.scala in package explorer → Run AsScala Application. Select the first matching item, the HellooWorld class and click the Ok.

  • OR you can also define configuration manually and run it. Just mention the project and class name.

  • That's it. You can see the output Hello World in output console.

That's all guys! If you face any problem while running the program please mention in the comments section below. Thank you.

Next: Spark Shell

Navigation menu

1. Apache Spark and Scala Installation

1.1 Spark installation on Windows​

1.2 Spark installation on Mac

2. Getting Familiar with Scala IDE

2.1 Hello World with Scala IDE​

3. Spark data structure basics

3.1 Spark RDD Transformations and Actions example

4. Spark Shell

4.1 Starting Spark shell with SparkContext example​

5. Reading data files in Spark

5.1 SparkContext Parallelize and read textFile method

5.2 Loading JSON file using Spark Scala

5.3 Loading TEXT file using Spark Scala

5.4 How to convert RDD to dataframe?

6. Writing data files in Spark

​6.1 How to write single CSV file in Spark

7. Spark streaming

7.1 Word count example Scala

7.2 Analyzing Twitter texts

8. Sample Big Data Architecture with Apache Spark

9. What's Artificial Intelligence, Machine Learning, Deep Learning, Predictive Analytics, Data Science?

10. Spark Interview Questions and Answers

1,862 views0 comments

Help others, write your first blog today!