我試過搜索,但無法想出如何將自己的包添加到GWT項目的定義方式。將Java包添加到GWT
我的樹結構如下:
-com.mycompany
-public
MyApplication.html
MyApplication.gwt.xml
-com.mycompany.client
MyApp.java
-com.mycompany.gui
TableLayout.java
我見過那裏的回答說增加相對於gwt.xml文件的根目錄軟件包,像這樣:
<module>
<inherits name="com.google.gwt.user.User" />
<entry-point class="com.mycompany.client.MyApp" />
<source path="client" />
<source path="gui" />
</module>
然後,它抱怨:
Unable to find type 'com.technicon.client.MyApp'
Hint: Previous compiler errors may have made this type unavailable
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
誰能告訴我什麼,我做錯了,如何解決這一問題?