Add Scala Ide with Eclipse

Hi Guys in this blog i wanna explain you , how can we integrate scala with Eclipse .Because there is no such powerful API present for Scala in market today

let’s start :-

  • Open Eclipse go to :-Help -> eclipse marketplace
  • Search scalaWill get scala ide

    Install it  Screenshot from 2016-01-14 01^%11^%05.png

     

  • Create a new Scala project “hello”
    • First click the “New → Scala Project” item in the “File” menu. 
    • Enter “hello” in the “Project name” field.
    • Click the “Finish” button.
  • Screenshot from 2016-01-14 01^%14^%36.png
  • Create a new Scala package in source folder “src”
    • Right-click on the “hello” project in the “Package Explorer” tab of the projects pane.
    • Select the “New → Package” menu item.
    • in the “New Package” window, enter “hello” in the “Name” field.
    • Press the “Finish” button.

    Create a Scala object HelloWorld with a main method

    • First expand the “hello” project tree and right-click on the “hello” package
    • Select the “New → Scala Object” menu item and enter HelloWorld in the “Object name” field.
    • Press the “Finish” button.
    • Screenshot from 2016-01-14 01^%18^%28.png
  • Extend the code to print a message
  • Make the HelloWorld object implement the main method and add a println statement (see image, below).
    • Create a Run configuration for the Scala project
      • Right click on helloworld.scala in the Package Explorer,
      • Select “Run as …” and select “Scala Application”
      • Select the first matching item, the “helloworld”
      • Click the “Ok” button.
      • Screenshot from 2016-01-14 01^%24^%44.png

 

Hope you guys like the tutorials ….  enjoy … please like and comment ….

Advertisements

One thought on “Add Scala Ide with Eclipse

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s