Scala Integration in Eclipse

The first thing that I always hear from my participants (in most of my Apache Spark training sessions) is how to practice Scala coding for Apache Spark in a 4GB RAM laptop. My usual answer is using Eclipse by adding a Scala Plugin.

In this section of the Blog, we will learn how to setup the Scala developer environment for practicing Apache Spark using Eclipse.

Since we are using Eclipse, you can perform the same on Windows, Linux or Mac.

However, my tutorial will be restricted to setting up the environment only on a Windows machine.

 

Step 1: Download and Install Oracle Java 8 (64-bit) in Windows machine

http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-windows-x64.exe?AuthParam=1496470609_b0842a3d84cdc3924c36b6872660312e

In case the above direct link doesn’t work, get the link by visiting the page

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Step 2: Download Eclipse. I personally use Eclipse Luna. Download Eclipse Luna (64-bit) from

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR2/eclipse-jee-luna-SR2-win32-x86_64.zip

Step 3: Start Eclipse and ensure its running smoothly. Incase if you get the below error screen, ensure your Java and Eclipse is compatible with each other in-terms of 64-bit and 32-bit. In this case, mostly the error will be due 64-bit & 32-bit inter-compatibility error of JDK and Eclipse.

java-started-with-exit-code-13

Step 4: Open Eclipse and Install Scala IDE Plugin. In some case, if you find challenging to install Scala Plugin, you can download ScalaEclipse from http://scala-ide.org/download/sdk.html

  1. Open Eclipse<br>
  2. Click on Help Menu > Install New Softwareeclipse spark setup<br>
  3. Click on Add button. spark eclipse setup<br>
  4. Enter the Details as given below:
    Name: Scala-IDE
    
    Location: http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site

    spark eclipse setup

     

  5. Click OK. Once resolved, select “Scala IDE forEclipse”.spark for eclipse<br>
  6. Click Next > Next > Accept the License Agreement > Finish

Installation and configuration might take some time. This is subject to your relative internet speed. Once the installation is complete, the Eclipse will restart and can start coding in Scala Perspective.

Prashant Nair

Bigdata Consultant | Author | Corporate Trainer | Technical Reviewer Passionate about new trends and technologies. More Geeky. Contact me for training and consulting !!!

2 thoughts on “Scala Integration in Eclipse

  1. Hi Prashant,

    Please share your contact details so that we can contact you for any trainings Big Data.

    Thanks & Regards
    Kashinath
    Mobile No. 9850812577

Leave a Reply

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