Sbt-launch.jar does not recognize scala 2.9.1 already installed

I just installed the "Type Table" and now I'm trying to install SBT using the instructions of the SBT github page .

However, the SBT installer does not recognize that Scala is already installed, and is trying to download the new version:

ubuntu@ip-10-120-65-227 :~/bin$ sbt Getting Scala 2.9.1 (for sbt)... downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.9.1/scala-compiler-2.9.1.jar ... [SUCCESSFUL ] org.scala-lang#scala-compiler;2.9.1!scala-compiler.jar (2108ms) downloading http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.9.1/scala-library-2.9.1.jar ... ^C 

I would like to use the current version specified in $ SCALA_HOME. Does anyone know how to do this?

Current env settings:

 $SCALA_HOME='/usr/local/typesafe-stack/bin/' $PATH='...:/usr/local/typesafe-stack/bin:...' 
+4
source share
2 answers

If you are using xsbt 0.11, you can specify a local scala using

 scalaHome := Some(file("/path/to/scala")) 

Do you want to put this in the global settings in your home directory

 ~/.sbt/global.sbt 

If you are using sbt 0.7 then go here

+7
source

I am currently running Windows 7 and XP on my machine. And I do not have a "home" in the windows. I installed Scala 2.9 and SBT. But I have the same problem. SBT cannot recognize scala.

0
source

Source: https://habr.com/ru/post/1385291/


All Articles