Adding Java packages to GWT

Posted by Organiccat on Stack Overflow See other posts from Stack Overflow or by Organiccat
Published on 2009-01-13T17:48:14Z Indexed on 2010/03/11 17:29 UTC
Read the original article Hit count: 326

Filed under:
|
|

I've tried searching but couldn't come up with a defined way on how to add your own packages to a GWT project.

My tree structure looks like this:

-com.mycompany
  -public
    MyApplication.html
  MyApplication.gwt.xml


-com.mycompany.client
  MyApp.java

-com.mycompany.gui
  TableLayout.java

The answer I've seen out there says to add the packages relative to the root directory of the gwt.xml file, like so:

<module>
  <inherits name="com.google.gwt.user.User" />
  <entry-point class="com.mycompany.client.MyApp" />
  <source path="client" />
  <source path="gui" />
</module>

It then complains:

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

Can anyone tell me what I'm doing wrong and how to fix this?

© Stack Overflow or respective owner

Related posts about gwt

Related posts about java