Getting a Scala interpreter to work

前端 未结 8 888
轻奢々
轻奢々 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 06:07

    If you don't want to add more directories to your path, try these steps:

    1. Download Scala from the downloads pages.
    2. Unzip and then copy the folder to \Library\Scala.
    3. Find the complete path to the bin directory, which should be \Library\Scala\scala-2.9.2\bin.
    4. Find the "scala" file, right click, and Make Alias.
    5. Move the alias file anywhere it's convenient, such as your desktop.
    6. Double click the alias to start Scala in the Terminal.
    0 讨论(0)
  • 2020-12-24 06:10

    If you downloaded scala with macports try typing scala-2.9 (or whatever is the filename of the contents of folder /opt/local/bin/scala/)

    (At least this works for OSX mountain lion)

    0 讨论(0)
提交回复
热议问题