我刚刚在我的 Eclipse 中安装了 Groovy 和 Repast Simphony 并创建了一个 Repast Simphony 项目。在自动生成的文件中是一个错误。在 ModelInitializer 类中,导入:
import static repast.simphony.essentials.RepastEssentials.*
抛出错误:Groovy:unable to resolve class repast.simphony.essentials.RepastEssentials
(我检查了文件系统并且文件存在于给定位置)
当我删除 static 关键字时,错误消失了,但是第二个错误“Groovy:class ProbeID is not an annotation in @ProbeID”(这是 toString()-method 的注释)仍然存在。
我在我的 Windows 7 机器上运行 Eclipse,版本:Luna Service Release 2 (4.4.2) Build id:20150219-0600 Java:1.8.0_31
我已经安装在 eclipse 中(用于 Repast):
- Groovy 编译器 2.3 功能 (2.9.1.xx)
- Eclipse 4.4 (2.9.1.xx) 上 Groovy-Eclipse 插件的 JDT Core 补丁
- 就餐 Simphony 2.3.1
任何想法可能导致问题以及如何解决它?
提前致谢, 弗兰克