Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check Curent Version of Scala inside Dos Command Prompt

Tags:

java

scala

Is there any way to find current version of Scala that I installed from command prompt?

As you know in command prompt Java -version gives us current version of Java in the system, and I am wondering if there is any command for Scala that gives me its current version.

I follow this instruction to set up Scala in Windows

  1. Download the sbt installer from here: http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.msi
  2. Run the installer

Verify that sbt is installed correctly: open the Command Prompt and type sbt sbt-version, you should see the version number of sbt (the first time you run it, sbt will download libraries from the internet). If you have problems installing sbt, ask for help on the forums.

And the tutorial says, it download dependencies when sbt sbt-versio is ran or may be I got that wrong?

like image 262
Kick Buttowski Avatar asked Sep 15 '14 23:09

Kick Buttowski


1 Answers

This one works for me:

sbt scalaVersion
like image 156
cn007b Avatar answered Oct 20 '22 21:10

cn007b