Yes, I know this is almost exactly the same as this question:
Getting "cat: /release: No such file or directory" when running scala
Well - I am brand new to submitting to SO and to Scala as well, so I wanted to ask a clarification question in the comments but can't at sub 50 reputation, so I apologize in having to pose my question here. The User answered their own question - and I needed an elaboration on what they did.
I get cat: /release: No such file or directory
whenever I run scalac myScalaClass.sc
or scala myScalaClass
directly from terminal OR from when I open and run Scala from bin/scala the message appears at the top before the scripting portion opens.
Any ideas on the fix? The original OP said
My $JAVA_HOME
wasn't set. But I'm not sure what they mean by this.
Thanks!
(Elaborated) Solution: My Java_HOME was blank, meaning it was not set properly.
Taken from the link provided in the answer by @Xander88. The checked answer there did it. All I had to do was copy and paste this in to Terminal, you can also manually copy it in to your ~/.bash_profile :
export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"