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 store the path to scalac
?
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 store the path to scalac
?
This will work without access to
scala-compiler.jar
:There are three ways to get the Scala version -
You can get the Scala version like this:
I don't know the specifics of the plugin, though.
We can also get installed Scala version
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.