包括源的类路径条目

时间:2013-09-19 15:35:24

标签: gwt

我的第一个GWT程序没有运行并显示错误,如下所示。 Plz的帮助。我不明白出了什么问题:(这就是它在控制台中显示的内容。

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

1 个答案:

答案 0 :(得分:5)

您的<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