class java.lang.RuntimeException/Scala class file does not contain Scala annotation

爱⌒轻易说出口 提交于 2019-12-08 09:54:49

问题


I'm trying to execute a scala code using scala 2.10.2, the code uses some jar libraries compiled with sbt.

I get the following error:

scala: error while loading Order, class file '..\prestashop-scala-client-0.2.4\target\prestasac-0.2.4.jar(co/orderly/prestasac/representations/Order.class)' is broken
(class java.lang.RuntimeException/Scala class file does not contain Scala annotation)

Sources of the prestasac-0.2.4.jar are on github: Order.class

Is there something to do to fix this issue ?

Thank you


回答1:


Looks like the library is configured to compile against Scala 2.9.1. Major versions of Scala are not binary compatible.

I put the necessary SBT changes here: https://github.com/mpartel/prestashop-scala-client/commit/e9a1df40bfe35518aaebac899e438b9b6fa6d728



来源:https://stackoverflow.com/questions/18797464/class-java-lang-runtimeexception-scala-class-file-does-not-contain-scala-annotat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!