In this article, we will see how to configure Eclipse IDE for Scala. This tutorial is for people new to Scala. Tools/Technologies used: Eclipse Luna Scala IDE JDK 8 (you may use JDK 6 onwards) Prerequisites If you do not have JDK or Eclipse IDE installed, you can install it from. Eclipse is an open source community. Find downloads for packages, developer builds, and projects. Open Downloads/Eclipse Installer.app -args -vm /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/bin In the installer you may select the VM used by Eclipse. Use a compatible VM here and the installer will modify the eclipse.ini for you. Operating System: Windows / Linux / Mac; Java: Oracle Java 7; Scala: 2.11; Eclipse: Eclipse Luna, Mars or later; ii. Install Eclipse plugin for Scala. Open Eclipse Marketplace (Help Eclipse Marketplace) and search for “scala ide”. Now install the Scala IDE. Alternatively, you can download Eclipse for Scala.
Download Apache Spark™
The Scala IDE for Eclipse is centered around seamless integration with the Eclipse Java tools, providing many of the features Eclipse users have come to expect including, Support for mixed Scala/Java projects and any combination of Scala/Java project dependencies.
- Choose a Spark release:
- Choose a package type:
- Download Spark:
- Verify this release using the and project release KEYS.
Note that, Spark 2.x is pre-built with Scala 2.11 except version 2.4.2, which is pre-built with Scala 2.12. Spark 3.0+ is pre-built with Scala 2.12.
Latest Preview Release
Preview releases, as the name suggests, are releases for previewing upcoming features.Unlike nightly packages, preview releases have been audited by the project’s management committeeto satisfy the legal requirements of Apache Software Foundation’s release policy.Preview releases are not meant to be functional, i.e. they can and highly likely will containcritical bugs or documentation errors.The latest preview release is Spark 3.0.0-preview2, published on Dec 23, 2019.
Link with Spark
Spark artifacts are hosted in Maven Central. You can add a Maven dependency with the following coordinates:
Installing with PyPi
PySpark is now available in pypi. To install just run
pip install pyspark
.Release Notes for Stable Releases
Archived Releases
As new Spark releases come out for each development stream, previous ones will be archived,but they are still available at Spark release archives.
NOTE: Previous releases of Spark may be affected by security issues. Please consult theSecurity page for a list of known issues that may affect the version you downloadbefore deciding to use it.
First, make sure you have the Java 8 JDK (or Java 11 JDK) installed.
To check, open the terminal and type:
java -version
(Make sure you have version 1.8 or 11.)(If you don't have it installed, download Java from Oracle Java 8, Oracle Java 11, or AdoptOpenJDK 8/11. Refer JDK Compatibility for Scala/Java compatiblity detail.
Then, install Scala:
...either by installing an IDE such as IntelliJ, or sbt, Scala's build tool.
orBest if you prefer a full-featured IDE (recommended for beginners)
Download intellijDownload Sbt
Compared to other programming languages, installing Scala is a bit unusual. Scala is unusual because it is usually installed for each of your Scala projects rather than being installed system-wide. Both of the above options manage (via sbt) a specific Scala version per Scala project you create.
But it's also possible to 'install' Scala in numerous other ways; e.g., grab Scala binaries and use Scala from the command line or use Scala in your browser!
But it's also possible to 'install' Scala in numerous other ways; e.g., grab Scala binaries and use Scala from the command line or use Scala in your browser!
Other ways to install Scala
- Download the Scala binaries for
Need help running the binaries? - Using SDKMAN!, you can easily install Scala with
sdk install scala
- On macOS you can also use Homebrew and existing Scala Formulae
brew update
brew install scala
- With MacPorts, you can get Scala using
sudo port install scala2.x
command.
For example to install Scala 2.12 simply usesudo port install scala2.12
- Use Scastie to run single-file Scala programs in your browser using multiple Scala compilers; the production Scala 2.x compilers, Scala.js, Dotty, and Typelevel Scala. Save and share executable Scala code snippets.
- Try Scala in the browser via ScalaFiddle. This lets you run single-file Scala programs in your browser using Scala.js, including graphical/interactive examples such as Oscilloscope or Ray Tracer
- Get Ammonite, a popular Scala REPL
Or are you looking for previous releases of Scala?
Release Notes
For a summary of important changes, see the GitHub release notes.(Or consult our archive of older release notes.)
Download Eclipse Scala For Mac Pro
Other Releases
You can find the links to prior versions or the latest development version below.To see a detailed list of changes for each version of Scala please refer to the changelog.
Note that different major releases of Scala (e.g. Scala 2.11.x and Scala 2.12.x) are not binary compatible with each other.
- Latest 2.12.x maintenance release:
- Scala 2.12.12 - Released on July 13, 2020
- Last 2.11.x maintenance release:
- Scala 2.11.12 - Released on November 9, 2017
- Last 2.10.x maintenance release:
- Scala 2.10.7 - Released on November 9, 2017
Other resources
You can find the installer download links for other operating systems, as well as documentation and source code archives for Scala 2.13.3 below.
Archive | System | Size |
---|---|---|
scala-2.13.3.tgz | Mac OS X, Unix, Cygwin | 21.38M |
scala-2.13.3.msi | Windows (msi installer) | 125.76M |
scala-2.13.3.zip | Windows | 21.42M |
scala-2.13.3.deb | Debian | 618.18M |
scala-2.13.3.rpm | RPM package | 126.08M |
scala-docs-2.13.3.txz | API docs | 54.44M |
scala-docs-2.13.3.zip | API docs | 107.75M |
scala-sources-2.13.3.tar.gz | Sources | 7.1M |
Eclipse Scala Plugin
License
Download Eclipse Scala For Mac Iso
The Scala distribution is released under the Apache License, Version 2.0.