Getting a Scala interpreter to work

前端 未结 8 918
轻奢々
轻奢々 2020-12-24 05:19

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

8条回答
  •  感情败类
    2020-12-24 05:57

    You need to add scala\bin to your PATH environment variable.

    On Mac OS X the path to Scala bin is usually: /Users//scala/bin and on Windows usually: C:\Program Files (x86)\scala\bin.

    On Mac OS X use the Terminal and write (using your username):

    echo 'export PATH=/Users//scala/bin:$PATH' >> ~/.bash_profile
    

    then close the Terminal and start it again.

提交回复
热议问题