• java scala jdk+sdk


    编译报错:

    Error:scalac: Error: org.jetbrains.jps.incremental.scala.remote.ServerException

    Error compiling sbt component 'compiler-interface-2.10.1-52.0'

            at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:145)

            at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:142)

            at sbt.IO$.withTemporaryDirectory(IO.scala:291)

            at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:142)

            at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:139 

            at sbt.IO$.withTemporaryDirectory(IO.scala:291)

            at sbt.compiler.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:139)

            at sbt.compiler.IC$.compileInterfaceJar(IncrementalCompiler.scala:52)

            at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl$.getOrCompileInterfaceJar(CompilerFactoryImpl.scala:96)

            at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl$$anonfun$getScalac$1.apply(CompilerFactoryImpl.scala:50)

            at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl$$anonfun$getScalac$1.apply(CompilerFactoryImpl.scala:49)

            at scala.Option.map(Option.scala:146)

            at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl.getScalac(CompilerFactoryImpl.scala:49)

    原因:jdk和scala版本不匹配,改为jdk7+scala2.10.3或者scala2.11.8通过。改完之后修改idea环境。

    idea的配置改动:

    pom:

    scala-lib改为2.10.3版本的

  • 相关阅读:
    Java第三季
    LeetCode(10)Regular Expression Matching
    LeetCode(9)Palindrome Number
    shell基础编程
    LeetCode(8)String to Integer (atoi)
    使用python绘制词云
    我的书单
    LeetCode(7)Reverse Integer
    获取新浪微博的Access_token
    c语言中,常见数据类型的字节数
  • 原文地址:https://www.cnblogs.com/hukeshare/p/9675832.html
Copyright © 2020-2023  润新知