(The Scala Center team is dedicated to providing regular and transparent community updates about project plans & progress we develop or support. In this forum we created a new topic category to allow quicker orientation going forward: “Scala Center Updates”. Even though all feedback is welcome, we keep the right to make executive decisions about projects we lead. Overview of all our activities can always be found at https://scala.epfl.ch/records.html)
You can setup your machine for Scala development by getting the coursier CLI, and running
$ cs setup
On Windows, you can simply download
cs.exe and double-click on it.
No JVM is required for that to work. This takes care of:
- installing a JVM if none is found on your machine,
- creating launchers for the most common Scala CLI tools, most notably:
This relies on capabilities of the coursier CLI, most notably
There’s no clear way to setup one’s machine for Scala development. Installing an Oracle JVM has become more and more blurry over the years, and each Scala CLI tool has its own installation process. Instructions to install JVMs and those Scala tools also vary depending on your operating system.
To address that, the Scala Center decided to invest in the
install command of coursier and to pack it with JVM installation capabilities. The ability to:
- install applications,
- install JVMs,
- do that from a native application, generated with GraalVM native-image,
give us the possibility to have a standalone CLI tool to setup one’s machine for Scala development, that doesn’t need a prior JVM to be installed.
Your feedback about this new setup is very welcome. Our hope is to make this setup the default way of installing Scala on one’s machine.