编译示例GWT小工具应用程序时出错



我正试图让GWT示例Gadgets应用程序基于这里给出的示例运行。当我编译代码时,我得到以下异常:

[ERROR] Unexpected internal compiler error
[INFO] java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
[INFO]  at com.google.gwt.gadgets.rebind.GadgetGenerator.validateType(GadgetGenerator.java:353)
[INFO]  at com.google.gwt.gadgets.rebind.GadgetGenerator.generate(GadgetGenerator.java:88)
[INFO]  at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
[INFO]  at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:676)
[INFO]  at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
[INFO]  at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:644)
[INFO]  at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:34)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:271)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:223)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:139)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:167)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:132)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:99)
[INFO]  at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
[INFO]  at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:106)

我的项目有以下主要依赖项:

  1. gwt用户v2.6.1
  2. gwt小工具v1.0.3

我使用的是java 1.7

有人能告诉我我缺了什么吗。。。一整天都在谷歌上搜索,没有发现任何有用的

gwt gadgets 1.0.3是在gwt 2.6.1之前很久编译的。听起来GWT中可能有一些突破性的更改,这些更改会影响GWT小工具对GWT用户的调用。

您应该能够获得gwt小工具的源代码,并根据最新版本的gwt用户修复/编译它,否则您可能不得不使用更符合gwt小工具1.0.3发布日期(2009年5月!)的旧gwt。

最新更新