Intellij: SBT-based Scala project does not build with Java 9

前端 未结 4 926
离开以前
离开以前 2020-12-15 08:56

I\'ve tried to switch my Scala/sbt based project to Java 9. If I compile the project with sbt, it works.

If I try to build the project with the Build option of Intel

4条回答
  •  暖寄归人
    2020-12-15 09:15

    1. Open [File -> Settings -> Build, Execution, Deployment -> Compiler]
    2. Add "--add-modules java.se.ee" to [Shared build process VM options]

提交回复
热议问题