Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

GWT & ANT Classpath

 
Ranch Hand
Posts: 105
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: 105
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
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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!
 
    Bookmark Topic Watch Topic
  • New Topic