Mac OS X SBT Release

I am trying to use the Miles Sabin HList from his Shapeless project. So I installed sbt from Macports (this is version 0.11).

Unfortunately, when I run sbt, I get the following error message:

java.lang.IncompatibleClassChangeError: Expected static method scala.Predef$.refArrayOps([Ljava/lang/Object;)Lscala/collection/mutable/ArrayOps; at xsbt.boot.Boot$.runImpl(Boot.scala:24) at xsbt.boot.Boot$.main(Boot.scala:15) at xsbt.boot.Boot.main(Boot.scala) Error during sbt execution: java.lang.IncompatibleClassChangeError: Expected static method scala.Predef$.refArrayOps([Ljava/lang/Object;)Lscala/collection/mutable/ArrayOps; 

A google search seems to indicate that sbt-launch.jar will be in the classpath. But even though I am exporting CLASSPATH to "", I still have a problem.

I also downloaded sbt-launch.jar directly from typesafe and worked with java -jar with exactly the same problem.

Any idea? Other people having the same problem?

EDIT

I traced the problem to the Java extension in ~ / Library / Java / Extensions / scala -library.jar

I deleted it and the problem disappeared. I think this was set by the TypeSafe (TBC) stack.

+4
source share
2 answers

I had this error and generally deleted Java, and installing it will solve it again.

+1
source

Published by OP:

I tracked the problem until the Java extension in ~/Library/Java/Extensions/scala-library.jar

I deleted it and the problem disappeared. I think this was set by the TypeSafe (TBC) stack.

0
source

Source: https://habr.com/ru/post/1392045/


All Articles