Java PlayN/GWT-您是否忘记继承所需的模块?

Java PlayN/GWT-您是否忘记继承所需的模块?,java,html,gwt,playn,Java,Html,Gwt,Playn,当我试图用HTML编译我的游戏时,我遇到了一个奇怪的问题。(我搜索了其他主题,它们指的是那些正在导入非法软件包的人,而我不是。) 所以基本上,在我的主程序包中调用的每个类和主程序包之外调用的每个类都会抛出这个错误。这些类都是由我实现的,它们不会导入任何非法的东西(没有反射,没有I/O,只有自制的类和jbox2d)。它似乎忽略了导入或类似的东西 为了测试这一点,我创建了一个名为test的空类。当它在我的主程序包中时,我没有收到任何错误,而当我将它移到外部时,我收到: [信息][错误]第73行:pr

当我试图用HTML编译我的游戏时,我遇到了一个奇怪的问题。(我搜索了其他主题,它们指的是那些正在导入非法软件包的人,而我不是。)

所以基本上,在我的主程序包中调用的每个类和主程序包之外调用的每个类都会抛出这个错误。这些类都是由我实现的,它们不会导入任何非法的东西(没有反射,没有I/O,只有自制的类和jbox2d)。它似乎忽略了导入或类似的东西

为了测试这一点,我创建了一个名为test的空类。当它在我的主程序包中时,我没有收到任何错误,而当我将它移到外部时,我收到:

[信息][错误]第73行:progetto.saga.map.Test类型没有可用的源代码;您是否忘记继承所需的模块

在第73行,我只做了
testtest=newtest()

这是我的.gwt.xml文件:

<module rename-to='theknowledgetower'>
  <inherits name='playn.PlayN'/>
  <inherits name='TheKnowledgeTowersAssets'/>

  <source path='core'/>
  <source path='html'/>

  <public path="resources" />

  <entry-point class='progetto.saga.html.TheKnowledgeTowersHtml'/>
</module>
GWT只在
GWT.xml
文件的
元素中列出的子包中看到类

因此,您必须为要从中加载类的每个子包添加
(从错误消息中,
可导航的
实体
映射
gui
,等等)

请参见如果未定义
元素,则默认情况下GWT将查看客户端路径,因此,如果您将文件移动到客户端包下,它也会工作。

知道问题出在哪里吗?
[INFO]       [ERROR] Line 53: No source code is available for type progetto.saga.navigable.Navigable; did you forget to inherit a required module?
[INFO]       [ERROR] Line 59: No source code is available for type progetto.saga.entity.dynamicentity.Player; did you forget to inherit a required module?
[INFO]       [ERROR] Line 110: No source code is available for type progetto.saga.navigable.button.Button; did you forget to inherit a required module?
[INFO]       [ERROR] Line 114: No source code is available for type progetto.saga.navigable.menu.HomeMenu; did you forget to inherit a required module?
[INFO]       [ERROR] Line 115: No source code is available for type progetto.saga.navigable.GameLoop; did you forget to inherit a required module?
[INFO]       [ERROR] Line 116: No source code is available for type progetto.saga.navigable.menu.CreationMenu; did you forget to inherit a required module?
[INFO]       [ERROR] Line 117: No source code is available for type progetto.saga.navigable.LoadingScreen; did you forget to inherit a required module?
[INFO]       [ERROR] Line 152: No source code is available for type progetto.saga.navigable.menu.GameMenu; did you forget to inherit a required module?
[INFO]       [ERROR] Line 153: No source code is available for type progetto.saga.map.cell.TowerFloor; did you forget to inherit a required module?
[INFO]       [ERROR] Line 154: No source code is available for type progetto.saga.map.cell.TowerWall; did you forget to inherit a required module?
[INFO]       [ERROR] Line 155: No source code is available for type progetto.saga.map.cell.TowerDecoration; did you forget to inherit a required module?
[INFO]       [ERROR] Line 156: No source code is available for type progetto.saga.entity.dynamicentity.enemy.Enemy; did you forget to inherit a required module?
[INFO]       [ERROR] Line 157: No source code is available for type progetto.saga.gui.Bar; did you forget to inherit a required module?
[INFO]       [ERROR] Line 158: No source code is available for type progetto.saga.entity.dynamicentity.equip.Equip; did you forget to inherit a required module?
[INFO]       [ERROR] Line 159: No source code is available for type progetto.saga.entity.dynamicentity.equip.Shield; did you forget to inherit a required module?
[INFO]       [ERROR] Line 160: No source code is available for type progetto.saga.entity.dynamicentity.spell.Spell; did you forget to inherit a required module?
[INFO]       [ERROR] Line 161: No source code is available for type progetto.saga.entity.staticentity.StorableDrop; did you forget to inherit a required module?
[INFO]       [ERROR] Line 162: No source code is available for type progetto.saga.entity.staticentity.Item; did you forget to inherit a required module?