As far as I understand, I have multiple versions/installs of Scala to be able to access it via Eclipse, bash/OS-X shell, and for SBT:
Is my understanding correct? If so, is there any way to run with just the one version/install for all uses?
Is my understanding correct?
No. You don't "install" Scala. You just have multiple versions of Executable Jar file
of scala-compiler
, scala-library
etc. The version that you have on your PATH
is the one that seems installed but its nothing more than running a jar
file.
TO run on a specific version, just add the scala
jars to the classpath of your project. If you are using SBT, you can specify the scalaVersion in your build.sbt and it will add the proper Jar to the classpath
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.