【问题标题】:Eclipse RCP & tycho - The type org.eclipse.swt.widgets.Button cannot be resolved. It is indirectly referenced from required .class filesEclipse RCP & tycho - org.eclipse.swt.widgets.Button 类型无法解析。它是从所需的 .class 文件中间接引用的
【发布时间】:2012-10-26 16:27:35
【问题描述】:

情况: 我有一个 Eclipse RCP 应用程序,我正在尝试使用 Eclipse 的 tycho 插件构建它。
当我在 IDe 中执行我的 Eclipse 应用程序时 - 应用程序正常执行。
使用 tycho 构建应用程序时 - 抛出以下错误:

The type org.eclipse.swt.widgets.Button cannot be resolved. It is indirectly referenced from required .class files

我做了什么:
在引发“缺少要求”异常的其他情况下,我发现 - a missing transitive plugin-dependency was the reason.

在我的情况下,缺少 SWT 小部件“按钮”,因此我正在尝试导入 swt。 SWT 依赖于平台,因此我在 product 中导入 swt,如 here 所述。

无论如何,在编译过程中,错误又出现了。

问题:
有人有任何想法,如何解决这个问题?

【问题讨论】:

  • 好问题,没有答案,但在您的 tycho 配置或文件中的某处未添加正确的插件,我不确定如何解决。
  • 您可能想从 tycho-users 邮件列表中复制答案 :-)

标签: eclipse eclipse-rcp tycho


【解决方案1】:

我从邮件列表中得到了答案(Thnx Jeff MAURY!) - 这似乎是第谷的错误。 Here 是一个可用的补丁。

对于像我这样还不了解 GIT 的人:

  • 在 Windows 上签出补丁时,使用 TortoiseGit 或 MSYGit 客户端,而不是 EGit 客户端 - 它无法识别存储库。
  • 另外使用 https 存储库,而不是 git 存储库 - git 不适合我
  • checkot 语法是 git clone https://git.eclipse.org/r/tycho/org.eclipse.tycho.git - https://git.eclipse.org/r/tycho/org.eclipse.tycho.git 是这里的存储库 URL

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-14
    • 2017-10-05
    • 2013-05-14
    • 2017-02-26
    • 2016-10-31
    • 2016-02-20
    相关资源
    最近更新 更多