sbt build IncompatibleClassChangeError

73 views
Skip to first unread message

Lukas Rytz

unread,
May 16, 2012, 3:59:27 AM5/16/12
to scala-i...@googlegroups.com
When I
 - check out scala/scala
 - run "sbtx" (pauls sbt-extras sbt runner)
 - wait for the sbt prompt
 - then say "compile"

I get the attached log.

[error] {file:/Users/luc/scala/scala/}forkjoin/compile:compile: java.lang.IncompatibleClassChangeError: scala.concurrent.forkjoin.LinkedTransferQueue and scala.concurrent.forkjoin.LinkedTransferQueue$Node disagree on InnerClasses attribute
[error] Total time: 3 s, completed May 16, 2012 9:57:21 AM

Calling "compile" a second time things work.

Lukas
log.txt

Lukas Rytz

unread,
May 16, 2012, 4:53:05 AM5/16/12
to scala-i...@googlegroups.com
FYI, if you want to use the sbt build and eclipse.

After calling "package" you get the file
  target/scala-library/scala-library-2.10.0-SNAPSHOT.jar

If you add it to the eclipse classpath, the builder will complain with "Cannot find Scala library on the classpath".

You need to rename the file to "scala-library.jar".

Reply all
Reply to author
Forward
0 new messages