• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

GWT & ANT Classpath

 
Ranch Hand
Posts: 105
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 105
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well done. And for coming back and sharing your solution with others, you just earned yourself a cow!
 
reply
    Bookmark Topic Watch Topic
  • New Topic