Compilation failed: error while loading AnnotatedElement, ConcurrentMap, CharSequence from Java 8 under Scala 2.10?

后端 未结 9 1912
臣服心动
臣服心动 2020-12-08 09:51

I\'m using the following:

  • Scala 2.10.4
  • Scalatra 2.2.2
  • sbt 0.13.0
  • java 1.8.0
  • casbah 2.7.2
  • scalatra-sbt 0.3.5
  • <
相关标签:
9条回答
  • 2020-12-08 09:56

    I hope a stable version of Scala will help you, Try 2.10.x with Java 1.7.x versions for better performance.

    I mean it worked for me also in the same.

    0 讨论(0)
  • 2020-12-08 09:57

    In my company we had this problem with CharSequence. This is due to Scala 2.10.x does not work with Java 8. This was described in Scalas mailinglist. Switch back to Java 7.

    0 讨论(0)
  • 2020-12-08 09:59

    I am seeing the same issue with software requiring Scala 2.9.2+ and Java 1.7 running on Scala 2.10.4 and Java 1.8. Changed to Java 7 via sudo update-alternatives --config java

    0 讨论(0)
  • 2020-12-08 10:01

    I have a similar problem on Java 1.8.0 working with Scala 2.10.4 and sbt 0.12.4. But when upgrading to sbt 0.13.7, the problem is solved.

    0 讨论(0)
  • 2020-12-08 10:02

    Switching to Scala 2.10.4 solved the problem for me.

    0 讨论(0)
  • 2020-12-08 10:07

    I had the same problem. However by switching to Java 7 my problem is resolved. So now this configuration works for me:

    sbt 0.13.8
    scala 2.11.7
    java 7
    
    0 讨论(0)
提交回复
热议问题