GWT – 无法找到入口点类

我最近开始开发另一个GWT模块。 所以我创建了一个包含所有新类和一个实现新入口点的特定类的包。 我在我的gwt.xml中修改了我的新入口点。 编译时,我收到以下错误:

GWT Compiling client-side code. WARNING: 'com.google.gwt.dev.GWTCompiler' is deprecated and will be removed in a future release. Use 'com.google.gwt.dev.Compiler' instead. (To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM arg.) Compiling module com.test.gwt Finding entry point classes [ERROR] Unable to find type 'com.test.ajax.input.createEntryPoint' [ERROR] Hint: Previous compiler errors may have made this type unavailable 

这不是大写字母错误,gwt.xml中的路径和我的实际包都写得一样……任何线索?

  1. 确保您的代码位于“客户端”子包中
  2. 确保您的.gwt.xml文件位于客户端的父包中

例如,将目录/包结构更改为:

 com/test/ajax/input/client/createEntryPoint.java com/test/ajax/input/Module.gwt.xml 

您的Module.gwt.xml应包含以下行:

  

更多: http : //code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html