eclipsescalam2eclipsem2escala-ide

Cross-compiled with an incompatible version


I am using eclipse with m2eclipse-scala plugin. Currently, I get the following error message:

exampleA_2.10-2.0.1.jar of module build path is cross-compiled with an incompatible version of Scala (2.10.0). In case this report is mistaken, this check can be disabled in the compiler preference page

It looks like the versions of extracted Scala and Scala IDE match. I just wanted to make sure that this is a "false-negative" as described here and can be safely turned off.


Solution

  • As @The Archetypal Paul suggested, it was because I was using wrong Scala library.

    If you are using Scala 2.11 (check at About Scala IDE -> installation details), you can downgrade by following instruction here. It's a lot easier than uninstalling and re-installing Scala IDE as other Stackoverflow posts recommend.