MacOS IDEA配置scala

时间:2024-04-12 16:09:40

1.前提:

  • scala已经在mac本地安装:
    MacOS IDEA配置scala

2.新建项目后,点击项目,右键,点击Add Framwork Support

MacOS IDEA配置scala

3.找到scala,刚开始时“scala-dk-2.11.8”是没有的,需要自己找
所以点击create,再点击Browe…
MacOS IDEA配置scala

4.来到自己安装scala的目录。选择scala-2.11.8目录下的lib目录,点击open,即可

MacOS IDEA配置scala

5.点击ok

MacOS IDEA配置scala

6.点击file->Project Structure

MacOS IDEA配置scala

7.选择module

MacOS IDEA配置scala

8.在main,新建一个scala目录,点击Source.即可在Scala目录中写scala代码了:

MacOS IDEA配置scala

MacOS IDEA配置scala