Choose tools in a fixed order: JDK, Scala version, build tool, editor, test runner. A beginner needs one working combination, not a collection of half-installed options. The goal is a setup that compiles a small file within 20–45 minutes of starting and gives clear errors when something is wrong.
Decide the runtime before the editor
Start with a long-term-support JDK. JDK 17 or JDK 21 are safe defaults for beginner Scala work; pick one and use it everywhere. Run java -version in the same terminal where you run Scala commands, then check the JDK setting in your editor. A mismatch between terminal JDK 21 and an IDE using JDK 8 causes misleading errors. Reserve 5–10 GB of free disk for the JDK, editor, build caches, and a few dependencies; the JDK itself is small, but caches grow. If you have 8 GB of RAM, stay with one editor and one build process. With 16 GB, a full IDE plus a 2–4 GB build heap is comfortable. If a tutorial insists on a different JDK, follow the tutorial but do not mix versions inside one project.
Pick one Scala version for your first 30 days
Use Scala 3.3 LTS or the current stable Scala 3 release. Avoid Scala 2.12, and use Scala 2.13 only when a course, library, or book requires it. The important rule is consistency: the version in your build file, the version your editor reports, and the version used by the REPL should match. Mixing Scala 3.3 and 3.4 in one workspace is a common beginner error. Write the version down and keep it for at least 30 days. If a tutorial uses Scala 2.13 and you cannot follow it otherwise, use 2.13 for that tutorial only, then return to Scala 3.
Choose a build tool you can understand
For a first week of single-file exercises, Scala CLI is the least distracting choice: it runs one file, starts in roughly 1–3 seconds, and needs no build file. Once you have more than two source files or need tests, move to sbt, the standard Scala build tool. A first sbt compile often takes 30–90 seconds while dependencies download; later compiles usually take 5–20 seconds. If your workplace already uses Maven or Gradle, use that instead, but do not run two build tools in the same project. Keep beginner dependencies to five or fewer. If sbt feels slow, set its JVM heap to 2–4 GB rather than adding more plugins.
Choose an editor or IDE by feedback quality
You need four features: red squiggles for errors, go-to-definition, import fixes, and a test runner. A full Scala IDE gives these with 1–2 GB of RAM. A lightweight editor with a Scala language server is lighter but depends on a correct build import. The free open-source combination costs £0; a paid IDE licence is optional and typically £100–£200 per year, so do not buy one before you know you need it. Avoid opening the same project in two editors at once, because two build servers can fight over caches. On an 8 GB machine, choose one editor and close browser tabs during compilation.
Add a REPL or worksheet for short experiments
A REPL is useful for expressions under 30 lines: check a method, test a pattern match, or inspect a collection. It starts in about 1–3 seconds on a healthy setup. A worksheet recompiles in roughly 2–10 seconds, which is fine for small examples. Neither is a substitute for a source file: if an experiment is worth keeping, move it into a file within 10 minutes. If REPL startup takes more than 10 seconds, suspect too little RAM, a cold cache, or a JDK mismatch before you install another tool.
Choose test tools after your first working program
Do not install three test frameworks. Pick MUnit for simple beginner tests, or ScalaTest if your course uses it. One framework is enough until you have a real project. A local test run should finish in under 2 minutes; if it takes longer, your build is doing too much or your dependency list is too large. Add a test dependency only when you have behaviour worth checking, not on day one. Tests are a tool for confidence, not a badge.
Match your machine and budget to the toolchain
Minimum: 8 GB RAM, 2 CPU cores, and 5 GB free disk. Comfortable: 16 GB RAM, 4 CPU cores, and 10 GB free disk. Budget £0 for the open-source path: JDK, Scala CLI or sbt, editor, language server, and MUnit are free. A paid IDE licence is the main optional cost, roughly £100–£200 per year. Cloud or container setups can help on a weak laptop, but they add a network dependency; keep a local fallback. A clean build under 3 minutes is a reasonable beginner target. If your machine cannot meet it, simplify the toolchain rather than adding hardware.
Diagnose a bad tool choice before installing more
Symptom: the editor shows errors but sbt compile succeeds. Likely cause: the editor is using a different JDK, a stale build import, or a second build tool. Fix: check java -version, reload the build, and confirm only one build definition exists.
Symptom: every command is slow or freezes. Likely cause: 8 GB RAM with a 4 GB build heap, two IDEs, or too many dependencies. Fix: close extra apps, set the build heap to 2 GB and the editor to 1 GB, then remove unused dependencies.
Symptom: scala or sbt is “not found” after installation. Likely cause: the shell has not reloaded its PATH, or the install went into a different terminal profile. Fix: open a new terminal, check which scala, and reinstall only if the path is still missing.
Symptom: a tutorial’s code fails on syntax. Likely cause: Scala 2.13 code running on Scala 3, or the reverse. Fix: match the tutorial’s Scala version or find a Scala 3 equivalent; do not mix versions in one module.
FAQ
Do I need an IDE to learn Scala?
No. For the first week, a text editor and a terminal are enough. Switch to one editor with Scala support once you have more than two files, because error highlighting and go-to-definition save more time than they cost.
Should I install Scala 2 or Scala 3?
Use Scala 3.3 LTS unless a course, book, or library requires Scala 2.13. Never mix Scala 2 and Scala 3 in the same beginner project. If you must follow a Scala 2 tutorial, keep that version isolated and return to Scala 3 afterwards.
How much RAM does a beginner Scala setup need?
8 GB is the practical minimum; 16 GB is comfortable. Give the build tool 2–4 GB of heap and the editor 1–2 GB, not all your RAM. If the machine has 8 GB, run one editor, one build, and fewer browser tabs.