0

我最近尝试从 Scala 2.9 升级到 2.10,遇到了以下困难:

我有两个 scala eclipse-plugin 项目。第一个在其构建路径上有一些非托管库。该项目编译并运行良好。

第二个项目依赖于第一个项目和一些通过 eclipse-plugin 依赖项配置的 Java 项目。

在这里,我得到四个不是很有帮助的编译错误。以下三倍

SBT builder crashed while compiling. The error message is 'bad symbolic reference. A signature in XSBInterRunner.class refers to term interprolog in value com.declarativa which is not available. It may be completely missing from the current classpath, or the version on the classpath might be incompatible with the version used when compiling XSBInterRunner.class.'. Check Error Log for details. de.wwu.sdpn.wala        Unknown Scala Problem

加上另一个转储实际上不包含相应库的类路径。

如果我手动将缺少的库添加到第二个项目,则不再找到第一个项目。即使它以前在转储的类路径上。

当使用或多或少等效的设置通过 SBT 从命令行编译项目时,一切正常。

我还尝试重新配置依赖项,不使用 eclipse-plugin 机制进行依赖项管理,而是直接将另一个项目添加到构建路径,但这也没有帮助。将项目重新导入到干净的工作区也没有帮助。

Eclipse 4.2 和 4.3 上的 scala-ide 插件的 3.0.1 和夜间版本都存在此问题。

知道如何解决这个问题吗?有没有办法找出类路径中缺少库的原因?

4

1 回答 1

0

从描述来看,非托管库似乎不是从第一个项目中导出的。验证在 中project properties > Java Build Path > Order and Export,库旁边的复选框已选中。需要使 jar 对其他项目可见。

于 2013-10-26T03:25:47.863 回答