• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT & ANT Classpath

 
sam wootton
Ranch Hand
Posts: 94
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Many thanks in advance for any help or advice.

I have a problem with my project structure and classpath. Project and pkg structure is:

[project]
build.xml

[project] [src] [gwt]
MFClient.gwt.xml

[project] [src] [gwt] [client]
MFClient.java

MFClient.gwt.xml


Ant build.xml


When I run "ant build" I get the following error



When I move my MFClient.gwt.xml' file to the same package level as my MFClient.java, so:

[project] [src] [gwt] [client]
MFClient.java
MFClient.gwt.xml

It compiles, but I get the following error:


However I do end up with a gwt-unitCache and classes copied to my war directory.

I have tried

<source path='gwt.client'/>
<source path='client'/>

.. and no source path at all, however seem to always have classpath problems, either not finding the java, or not finding my gwt.xml file.

Regards, Sam
 
sam wootton
Ranch Hand
Posts: 94
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resolved by changing "<arg value="gwt.MFClient"/>" in build.xml


And moving MFClient.gwt.xml to

[project] [src] [gwt]

and removing source path in gwt.xml:


Regards, Sam
 
Maneesh Godbole
Saloon Keeper
Posts: 11164
14
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done. And for coming back and sharing your solution with others, you just earned yourself a cow!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic