How do I get the Scala version from within Scala itself?

前端 未结 4 432
面向向阳花
面向向阳花 2021-01-31 13:18

This is not about command-line compiler options. How do I programmatically obtain the Scala version inside code?

Alternatively, where does the Eclipse Scala plugin v2 st

4条回答
  •  难免孤独
    2021-01-31 13:56

    We can also get installed Scala version

    1. Open command prompt
    2. type Scala
    3. You will get following output:

    Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_6 0). Type in expressions to have them evaluated. Type :help for more information.

提交回复
热议问题