【问题标题】:GWT Compiling without maven throws a compiler error NotFoundException没有 maven 的 GWT 编译会引发编译器错误 NotFoundException
【发布时间】:2015-08-06 22:19:29
【问题描述】:

所以当我不使用我的 maven 实现时,我无法编译我的应用程序。使用 maven-gwt-plugin 可以顺利编译。

我收到的错误是生成器无法获取它所请求的类信息:

Rebinding nz.co.doltech.wayhome.client.core.ReflectionBundle
Invoking generator fr.lteconsulting.hexa.classinfo.gwt.rebind.ClazzBundleGenerator
[ERROR] ERROR when generating null for nz.co.doltech.wayhome.client.core.ReflectionBundle
com.google.gwt.core.ext.typeinfo.NotFoundException: nz.co.doltech.wayhome.client.widgets.SettingForm
at com.google.gwt.dev.javac.typemodel.TypeOracle.getType(TypeOracle.java:623)
at com.google.gwt.dev.javac.typemodel.TypeOracle.getType(TypeOracle.java:68)
at fr.lteconsulting.hexa.classinfo.gwt.rebind.ClazzBundleGenerator.generate(ClazzBundleGenerator.java:71)
at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

显然,该类存在并在 Maven 实现中工作。当我使用 eclipse 'Java Application' 运行配置进行标准构建时,我无法弄清楚为什么它不起作用。这是我的运行配置的设置:

有人知道这里发生了什么吗?

【问题讨论】:

    标签: java eclipse gwt compilation


    【解决方案1】:

    尝试右键单击您的项目并转到 Google -> GWT 编译。

    编辑:如果您没有安装 Eclipse 的 GWT 插件,上述选项可能对您不可用。欲了解更多信息:

    https://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven

    【讨论】:

      猜你喜欢
      • 2012-10-31
      • 2017-11-26
      • 1970-01-01
      • 2014-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多