Getting a Scala interpreter to work

2020-02-17 06:40发布

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 to just type scala - this doesn't work.

The website infuriatingly says:

We assume that both the Scala software and the user environment are set up correctly.

How do I do that bit?

I'm very new to this, and using Jargon or assuming too much knowledge of frameworks around Scala will ruin a good response; please keep it simple.

  • Mac OS X (10.6.7)
  • Scala: 2.9.0.1

Thank you

7条回答
男人必须洒脱
2楼-- · 2020-02-17 07:06

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.
查看更多
登录 后发表回答