Setting up sbt to use Java 7 for compilation?

后端 未结 5 1086
暗喜
暗喜 2020-11-27 04:14

I\'m getting compile errors when running the compile task as the sources reference new classes in java.nio.file package that only appeared in Java

5条回答
  •  眼角桃花
    2020-11-27 04:47

    I'm assuming you want to change whatever you have set in JAVA_HOME by default, which you can do when invoking sbt:

    JAVA_HOME= sbt
    

    This works for me on OSX with sbt 0.13.8

提交回复
热议问题