类了java.lang.RuntimeException / Scala的类文件不包含Scala的注解 [英] class java.lang.RuntimeException/Scala class file does not contain Scala annotation

查看:771
本文介绍了类了java.lang.RuntimeException / Scala的类文件不包含Scala的注解的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想执行的Scala code使用Scala 2.10.2中,code使用与SBT整理了一些罐子库。

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

我收到以下错误:

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)

在prestasac-0.2.4.jar的来源是在GitHub上:<一href=\"https://github.com/orderly/$p$pstashop-scala-client/blob/master/src/main/scala/co/orderly/$p$pstasac/re$p$psentations/Order.scala\"相对=nofollow> Order.class

有什么做的,解决这个问题?

Is there something to do to fix this issue ?

感谢您

推荐答案

貌似库配置进行编译斯卡拉2.9.1。斯卡拉主要版本不二进制兼容的。

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

我把必要的SBT变化在这里:<一href=\"https://github.com/mpartel/$p$pstashop-scala-client/commit/e9a1df40bfe35518aaebac899e438b9b6fa6d728\" rel=\"nofollow\">https://github.com/mpartel/$p$pstashop-scala-client/commit/e9a1df40bfe35518aaebac899e438b9b6fa6d728

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

这篇关于类了java.lang.RuntimeException / Scala的类文件不包含Scala的注解的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆