Java libgdx gwt后端导入问题

Java libgdx gwt后端导入问题,java,eclipse,gwt,libgdx,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.go

因此,我有一个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>
它可以识别我的TeamRogueMiners类对象,但不能识别后端jar对象。我已经在Java构建路径下包含了gdx-backend-gwt.jar,并且还添加了源文件。我将这些库放在WEB-INF中的lib目录中,这似乎与生成的代码的执行方式以及示例项目的执行方式一致

这是libgdx最新版本的全部内容,当我在夜间构建中尝试它时,GwtApplication似乎没有定义要覆盖的getApplicationListener方法

任何帮助都将不胜感激


在Windows7 64位的Eclipse4.2上也可以做到这一点。

我本来打算删除这个,但我觉得我应该回答我自己的问题,以防有人发现这个问题。我没有意识到这一点,但是将
gdx backend gwt sources.jar
设置为
gdx backend gwt sources.jar
的源代码附件是不够的,我还必须将
gdx backend gwt sources.jar
设置为我的项目的库。我对
gdx sources.jar做了同样的操作。我现在开始解决更大更好的故障。我希望这对任何谷歌用户都有帮助。

的确如此。谢谢!实际上我不知道
-sources.jar
。我被要求编译这个应用程序,它不是我的应用程序,你给我省了很多麻烦。
[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