【问题标题】:Groovy/Grails Tool Suite won't run-app on MacGroovy/Grails Tool Suite 不会在 Mac 上运行应用程序
【发布时间】:2015-07-23 19:12:54
【问题描述】:

我们有一台安装了 Groovy Grails Tool Suite 3.6.4 的 MacBook OSX (10.8.5)。当我们导入一个 git 项目并尝试运行应用程序时,我们会收到以下错误:

Description Resource    Path Location   Type
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project    lifeflow_ui Unknown Java Problem

这是我们得到的唯一错误信息。应该有一个日志文件吗?我尝试查找 .log 文件,但没有成功。

【问题讨论】:

  • 它是否适用于另一个项目?项目是什么?它可以从命令行工作吗?

标签: git macos grails groovy


【解决方案1】:

此错误表示您的项目类路径不正确。找不到java.lang.Object。您的项目的类路径中似乎没有 JRE。我不知道为什么它没有自动添加,但你只需要自己添加它。

类似这样的:

  1. 选择项目,右键->构建路径->添加库->JRE系统库
  2. 选择您要使用的 JRE

这至少会消除您当前遇到的类路径问题,但可能会发现其他问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-05-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多