libgdx gwt后端导入问题

Qua*_*lly 2 java eclipse gwt libgdx

所以我有一个libgdx项目在桌面上执行得非常好,但是我在尝试将它变成Web应用程序时遇到了很多麻烦.

我现在遇到的问题是,它看起来不像我正在导入我的gdx后端jar.这是我的xml文件的样子:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN"
  "http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
<module rename-to='trmhtml5'>
    <inherits name='com.badlogic.gdx.backends.gdx_backends_gwt' />
    <inherits name='TeamRogueMiners' />

    <!-- Specify the app entry point class.                         -->
    <entry-point class='com.quazandwally.teamrogueminers.client.GwtLauncher'/>

    <set-configuration-property name="gdx.assetpath" value="../Android/assets" />

</module>
Run Code Online (Sandbox Code Playgroud)

这是我得到的错误:

[TRACE] [trmhtml5] - Finding entry point classes
    [ERROR] [trmhtml5] - Errors in 'file:/D:/Dev%20Dropbox/Dropbox/Eclipse/workspace/TRMHTML5/src/com/quazandwally/teamrogueminers/client/GwtLauncher.java'
        [ERROR] [trmhtml5] - Line 11: No source code is available for type com.badlogic.gdx.backends.gwt.GwtApplication; did you forget to inherit a required module?
        [ERROR] [trmhtml5] - Line 14: No source code is available for type com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; did you forget to inherit a required module?
        [ERROR] [trmhtml5] - Line 23: No source code is available for type com.badlogic.gdx.ApplicationListener; did you forget to inherit a required module?
    [ERROR] [trmhtml5] - Unable to find type 'com.quazandwally.teamrogueminers.client.GwtLauncher'
        [ERROR] [trmhtml5] - Hint: Previous compiler errors may have made this type unavailable
        [ERROR] [trmhtml5] - Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] [trmhtml5] - Failed to load module 'trmhtml5' from user agent 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36' at 127.0.0.1:58554
Run Code Online (Sandbox Code Playgroud)

它识别我的TeamRogueMiners类对象,但不识别后端jar内容.我在Java Build Path下包含了gdx-backend-gwt.jar,我也添加了源文件.我将这些库放在WEB-INF的lib目录中,这与生成的代码如何实现一致,以及示例项目似乎如何进行.

这是最新版本的libgdx,当我尝试使用每晚构建时,看起来GwtApplication没有定义覆盖的getApplicationListener方法.

任何帮助将不胜感激!

这也是使用Eclipse 4.2,在Windows 7 64位上完成的,如果有任何帮助的话.

Qua*_*lly 6

我打算删除这个,但我觉得我应该回答我自己的问题,以防有人发现这个问题.我没有意识到这一点,但设置gdx-backend-gwt-sources.jar作为源附件gdx-backend-gwt-sources.jar是不够的,我还必须gdx-backend-gwt-sources.jar作为我的项目的库.我做了同样的事gdx-sources.jar.我现在正在进行更大更好的故障排除故障.我希望这可以帮助任何googlers.