For example, in the Scala REPL

Scala
scala> util.Properties.versionString
res0: String = version 2.13.8

How to check scala version on different OS?

Use the terminal or command line to find the Scala version on various operating systems (OS). This is how to do it on different OS:

Table of Content

  • In Windows:
  • On macOS:
  • On Linux:
  • For example, in the Scala REPL:

Similar Reads

In Windows:

By pressing Win + R, inputting cmd, then clicking Enter, you may launch the command prompt.Enter the scala -version after typing it.It will show the version of Scala that is installed on your machine....

On macOS:

Go to Applications > Utilities > Terminal to open the Terminal.Enter the scala -version after typing it.It will show the version of Scala that is installed on your machine....

On Linux:

Get a terminal window open.Enter scala -version after typing it.It will show the version of Scala that is installed on your machine....

For example, in the Scala REPL:

Scala scala> util.Properties.versionString res0: String = version 2.13.8...