简体   繁体   中英

Is Scala installed multiple times if using Scala IDE, Scala on the command line, and SBT?

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:

  • one version of Scala as supplied with the Scala IDE;
  • the Scala binaries to be able to run it from within a shell; and,
  • Scala as part of 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM