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

前端 未结 4 928
离开以前
离开以前 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:21

    In addition to @nullpointer answer, short instruction how to use --add-modules

    Open File -> Settings -> Build, Execution, Deployment -> Compiler, and add --add-modules java.xml.bind to Shared build process VM options

提交回复
热议问题