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.
source share