I\'m very new to Scala. I have downloaded it, got it working in Eclipse where I\'ll be developing it; but I can\'t make it work in Terminal.
All sites and books say
My way of making Scala run every time you type "scala" in Terminal was to add the path not to the .bashrc file but to the /etc/paths one.
Then open the /etc/paths file with nano:
sudo nano /etc/paths
and add this line to the end:
/usr/bin/scala-2.11.2/bin
Press Ctrl+X to exit nano and answer "Yes" when prompted to overwrite the file
Then restart Terminal and once you type:
scala
you will get the scala command line that looks like this:
Welcome to Scala version 2.11.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_05).
Type in expressions to have them evaluated.
Type :help for more information.
scala>
I hope this helps.