我做到了
brew install scala
brew install sbt
scala对我来说工作得很好,但是当我尝试运行sbt时,我得到:
⇒ sbt
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
No java installations was detected.
Please go to http://www.java.com/getjava/ and download
siddhartha@Siddharthas-MacBook-Pro-2:~|
⇒ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
我检查了以下两个链接,但都没有一个有用的答案:
No Java installation was detected while sbt update
Why does sbt report "No java installations was detected" with $JAVA_HOME set?
感谢您的帮助。
https://stackoverflow.com/questions/46699175
复制相似问题