【问题标题】:GWT UiBinder new import in EclipseEclipse 中的 GWT UiBinder 新导入
【发布时间】:2015-08-20 15:20:04
【问题描述】:

我使用带有 GWT 插件的 Eclipse。当我创建新的 UIBinder 简单的.ui.xml:

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:b='urn:import:org.mycomp.ui'

添加了新的导入 org.mycomp.ui(我自己的组件由 jar 表示)。但是 Eclipse 编辑器将其标记为错误 (Simple.ui.xml) - 无法解析包 org.mycomp.ui

我可以在项目属性的哪个位置添加带有 org.mycomp.ui 的 jar 以使其对 Eclipse 可见?

【问题讨论】:

  • 可能是这个包不在 GWT 模块的“客户端路径”中。
  • 我可以在哪里修改这个路径?
  • 当我尝试构建模块时,在 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(来源不明)。所以在 ECLIPSE GWT 插件上不能解析我的导入:urn:import:org.mycomp.ui。但是如果我通过 maven gwt 插件构建项目就可以了

标签: gwt uibinder google-plugin-eclipse


【解决方案1】:

转到Properties -> Java Build Path,选择Libraries 选项卡并使用Add JARsAdd External JARs

您可以将 jar 复制到 war/WEB-INF/lib 并使用 Add JARs 指向该文件,或者如果您想将 jar 保留在项目之外,请使用 Add External JARs

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-21
    • 1970-01-01
    相关资源
    最近更新 更多