gpt4 book ai didi

eclipse - 在 GXT 示例应用程序中找不到 'com/extjs/gxt/ui/GXT.gwt.xml'

转载 作者:行者123 更新时间:2023-12-02 13:13:01 31 4
gpt4 key购买 nike

我正在尝试使用 GXT (ExtJS + GWT) 运行示例应用程序,如教程中所述

http://www.sencha.com/learn/setting-up-your-first-ext-gwt-project-in-eclipse

当我尝试在 Eclipse 中运行该应用程序时,出现错误

Loading modules
com.hello.gxt.HelloGXT
Loading inherited module 'com.extjs.gxt.ui.GXT'
[ERROR] Unable to find 'com/extjs/gxt/ui/GXT.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] Line 15: Unexpected exception while processing element 'inherits'

我的构建路径如下所示

enter image description here

运行配置的构建路径如下所示

enter image description here

来源如下:https://dl.dropbox.com/u/11776689/2012_09_27_HelloGXT.zip

如何解决这个问题?

“更新 29.09.2012”:前一个错误已修复,但现在我收到另一个错误:

Loading modules
com.hello.gxt.HelloGXT
Loading inherited module 'com.sencha.gxt.ui.GXT'
Loading inherited module 'com.sencha.gxt.data.Data'
Loading inherited module 'com.sencha.gxt.core.Core'
[ERROR] Unexpected error while processing XML
java.lang.NoClassDefFoundError: com/google/gwt/core/ext/Generator
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)

最佳答案

更改您的 *.gwt.xml 文件:

<inherits name="com.extjs.gxt.ui.GXT" />

<inherits name='com.sencha.gxt.ui.GXT' />

你用的教程肯定是2.0版本的。从GXT 3.0开始,命名空间更改为com.sencha.gxt...

更新 - 回答下一个问题:

我认为您缺少 gwt-dev.jar

请参阅此引用:http://www.sencha.com/forum/showthread.php?73617-GWT-1.64-Class-not-found-exception-GXT-module-declaration-is .

关于eclipse - 在 GXT 示例应用程序中找不到 'com/extjs/gxt/ui/GXT.gwt.xml',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12628818/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com