GWT - Can't Finding entry point classes

大城市里の小女人 提交于 2020-01-01 11:51:26

问题


I have recently started developing another GWT module. So I created a package with all my new classes and one specific class that implements a new entrypoint. I modified in my gwt.xml to my new entrypoint. When I compile, I get the following error:

 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

This isnt a capital letter mistake, both path in gwt.xml and my actual package are written the same... Any clues?


回答1:


  1. make sure your code is in 'client' subpackage
  2. make sure your .gwt.xml file is in client's parent package

for example change your directory/package structure to this:

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

Your Module.gwt.xml should contain the follownig line:

<entry-point class="com.test.ajax.input.client.createEntryPoint"/>

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



来源:https://stackoverflow.com/questions/6001915/gwt-cant-finding-entry-point-classes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!