When I try to launch sbt, I get the following message:
~(501)$sbt
(standard_in) 1: parse error
No java installations was detected.
Please go to http://www.java.com/getjava/ and download
However, both Java and Scala are installed
~(508)$java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
And this is Scala
~(503)$scala
Welcome to Scala 2.12.4 (Java HotSpot(TM) 64-Bit Server VM, Java 9.0.1).
Type in expressions for evaluation. Or try :help.
scala>
And you can find them in the path
Java path
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/"
export PATH=$PATH:"/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/"
Sbt path
export SBT_HOME="/usr/local/Cellar/sbt/1.0.3/bin/"
export PATH=$PATH:$SBT_HOME
and Scala path
export SCALA_HOME="/usr/local/opt/scala/idea"
export PATH=$PATH:$SCALA_HOME/bin
I'm running all these in a Mac Os Sierra v10.12.6 I'll appreciate any help. Thanks in advance.