GWT - 无法查找入口点类 [英] GWT - Can't Finding entry point classes
问题描述
我最近开始开发另一个GWT模块。所以我创建了一个包含所有我的新类和一个实现一个新的entrypoint的特定类的包。我在我的gwt.xml修改为我的新entrypoint。当我编译时,我得到以下错误:
GWT编译客户端代码。
警告:com.google.gwt.dev.GWTCompiler已弃用,将在以后的版本中删除。
改用com.google.gwt.dev.Compiler。
(要禁用此警告,请将-Dgwt.nowarn.legacy.tools作为JVM参数。)
编译模块com.test.gwt
查找入口点类
[错误]无法找到类型'com.test.ajax.input.createEntryPoint'
[错误]提示:以前的编译器错误可能使此类型不可用
这是一个大写字母错误,两个路径在gwt.xml和我的实际包都写同样...任何线索?
<文件位于客户端的父包中
例如将您的目录/包结构更改为:
com / test / ajax / input / client / createEntryPoint.java
com / test / ajax / input / Module.gwt.xml
您的Module.gwt.xml应包含follownig行:
< entry-point class =com.test.ajax.input.client.createEntryPoint/>
更多: http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html
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?
- make sure your code is in 'client' subpackage
- 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
这篇关于GWT - 无法查找入口点类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!