我的第一个 GWT 程序未运行并显示错误,如下所示。请帮忙。我不明白出了什么问题:(这就是控制台中显示的内容。
Loading modules
com.BasicProject.basic
Loading inherited module 'com.BasicProject.basic'
[ERROR] Unable to find 'com/BasicProject/basic.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method
最佳答案
您的<PROJECT>.gwt.xml
文件的 <inherits.../>
无效线。
如果您尝试继承某个模块,则必须传递该模块的 gwt.xml
的路径文件。
我猜测您的模块具有以下结构:
src
- com.BasicProject.basic
- client
- server
- shared
- Basic.gwt.xml
您的<inherits.../>
该行应该这样写:
<inherits name='com.BasicProject.basic.Basic'/>
因为你必须继承Basic.gwt.xml
.
有关更多详细信息,请参阅本文的加载模块部分:http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml
关于gwt - 包括源的类路径条目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18899051/