问题
I am using following environment.
- windows 7 32
- sbt.version = 0.13.8
Scala 2.11.8
i can't run even a single sbt command from command prompt. i am sending error with attachment. please kindly check the attachment. kindly suggest me any solution about it.
回答1:
I'm the OP of issue 1117. I have this problem when upgrading to a newer sbt version (I think the problem has something to do with Nexus).
When switching to a version > 0.13.0 I have to do the following steps:
- Configure the new version (e.g. 0.13.8) in build.properties
- Load the project with the sbt 0.13.0 launcher (sbt artifacts get downloaded)
- Now I can use the new launcher (e.g. 0.13.8)
I don't know if this helps in your case, but I suggest you try it out.
回答2:
I am able to install SBT 0.13.8 on Ubuntu 14.04 LTS. Below are steps which i followed it. NOTE: if you are using proxy,then you must configure proxy in sbtconfig.text. open usr/share/sbt-launcher-packging/conf/sbtconfig.text and paste following code to enable proxy for sbt(paste code include "-")
-Dhttp.proxyHost=ip of proxy server
-Dhttp.proxyPort=port
-Dhttps.proxyHost=ip of proxy server
-Dhttps.proxyPort=port
- downloaded sbt 0.13.8 deb package.
- Install deb package with Ubuntu installer
- Then from command terminal. type sbt. then you get message "Getting org.scala-sbt sbt 0.13.8 ...". wait for it. it will take long time. in my case it took between 30-60 minutes.
- if you don't get any error, and you got success message with ">" sign in command terminal, it means that your installation is successful.
- but i got error at this point. error is that "module not found: org.scala-sbt#sbt;0.13.8"
so i manually download sbt-0.13.8.jar and ivy.xml from sbt download link here and put in the following folder home/.ivy2/local/org.scala-sbt/sbt/0.13.8/jars/sbt.jar and home/.ivy2/local/org.scala-sbt/sbt/0.13.8/ivys/ivy.xml (sbt.jar is sbt-0-13.8)(if folder does not exist, please create it)
Exit from terminal and reopen terminal and again type sbt. wait for successful. it will take long time.(in my case 30 minutes)
during this process some jar failed to download, and it gave error. in my case "scala-compiler-2.10.4.jar" failed to download, it gave error. so don't worry. again exit from terminal, reopen terminal and again type sbt. at this time it is successfully installed.
at this stage, i got ">" in terminal, this is sign of SBT, now you can type sbt command here to test. for example: sbt-version , i got result : [info] 0.13.8
if you got message [info] 0.13.8, this means your installation done successfully.
i hope that it will help somebody from wasting time because i waste a lot of time to solve this.
thanks
Humayoo
来源:https://stackoverflow.com/questions/36149079/error-during-sbt-execution-no-scala-version-specified-or-detected