Skip to content

Instantly share code, notes, and snippets.

@LexVocoder
Last active May 17, 2019 04:27
Show Gist options
  • Save LexVocoder/8275fc687a6830b51bf95c0306c478a1 to your computer and use it in GitHub Desktop.
Save LexVocoder/8275fc687a6830b51bf95c0306c478a1 to your computer and use it in GitHub Desktop.
How to get started developing Scala under Linux

Scala is fun, but getting started can be daunting. This is how I got the Scala IDE for Eclipse running on my Linux system.

These directions assume you know your way around UNIX/Linux command line.

Java 8

First, you need a java compiler. Run this to see what output it produces:

javac -version

If you get a "command not found error", you can install it with this: sudo apt-get install openjdk-8-jdk

If the version is 9 or greater, that's probably too high. Consider using someting like jabba (or perhaps Docker) for version management.

Scala IDE

Visit http://scala-ide.org/download/sdk.html and download the Linux version. It's a .tar.gz file. Extract it as root into /opt:

sudo mkdir -p /opt
cd /opt
sudo tar xvfz path_to_scala-SDK...tar.gz
@LexVocoder
Copy link
Author

You'll then need to add /opt/eclipse to your PATH and/or /opt/eclipse/eclipse to your graphical desktop. For the latter, there's a reasonable icon at /opt/eclipse/icon.xpm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment